Changeset 35cf5c0 in sasview for test


Ignore:
Timestamp:
Apr 9, 2017 5:31:32 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1550ee0
Parents:
e801a4e
Message:

Test that SASView complains if SES columns do not match headers

Location:
test/sasdataloader/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/test/utest_sesans.py

    re801a4e r35cf5c0  
    8888            "sesans_examples/no_wavelength.ses") 
    8989 
     90    def test_sesans_columns_match_headers(self): 
     91        """ 
     92            Confirm that sesans files throw an exception if one of the mandator headers is missing. 
     93        """ 
     94        self.assertRaises( 
     95            RuntimeError, 
     96            self.loader, 
     97            "sesans_examples/too_many_headers.ses") 
     98 
    9099if __name__ == "__main__": 
    91100    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.