Changeset 96d2ab32 in sasview for sansdataloader


Ignore:
Timestamp:
Nov 23, 2011 4:02:04 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
86e2f5a
Parents:
9e338ca
Message:

Re #5 fixing reader test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansdataloader/test/utest_abs_reader.py

    rca3b9c5d r96d2ab32  
    1616        self.data = Reader().read("jan08002.ABS") 
    1717         
    18     def test_checkdata(self): 
     18    def test_abs_checkdata(self): 
    1919        """ 
    2020            Check the data content to see whether  
     
    6565        self.data = Loader().load("S2-30dq.d1d") 
    6666         
    67     def test_checkdata(self): 
     67    def test_hfir_checkdata(self): 
    6868        """ 
    6969            Check the data content to see whether  
     
    8888        self.data = Loader().load("MAR07232_rest.ASC") 
    8989         
    90     def test_checkdata(self): 
     90    def test_igor_checkdata(self): 
    9191        """ 
    9292            Check the data content to see whether  
     
    121121     
    122122    def setUp(self): 
    123         self.data = Loader().load("MP_New.sans") 
    124  
    125     def test_checkdata(self): 
     123        #self.data = Loader().load("MP_New.sans") 
     124        from sans.dataloader.readers.danse_reader import Reader as r 
     125        self.data = r().read("MP_New.sans") 
     126    def test_danse_checkdata(self): 
    126127        """ 
    127128            Check the data content to see whether  
     
    161162        self.data = Loader().load("cansas1d.xml") 
    162163  
    163     def test_checkdata(self): 
     164    def test_cansas_checkdata(self): 
    164165        self.assertEqual(self.data.filename, "cansas1d.xml") 
    165166        self._checkdata() 
     
    380381 
    381382if __name__ == '__main__': 
    382     import logging 
    383     logging.basicConfig(level=logging.INFO, 
    384                         format='%(asctime)s %(levelname)s %(message)s', 
    385                         filename='utest_abs_reader.log', 
    386                         filemode='w') 
    387     unittest.main() 
    388     
     383    unittest.main(testRunner=unittest.TextTestRunner(verbosity=2)) 
Note: See TracChangeset for help on using the changeset viewer.