Changeset 96510c8 in sasview for DataLoader/test


Ignore:
Timestamp:
Jul 2, 2008 6:07:12 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
0fc05f9
Parents:
9e85792
Message:

unit test added for plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/testLoad.py

    rc125e0c r96510c8  
    99from DataLoader.readers import TXT3_Reader,TXT2_Reader 
    1010from DataLoader.readers import IgorReader,danse_reader,tiff_reader 
    11  
     11import os.path 
    1212class testLoader(unittest.TestCase): 
    1313    """ test fitting """ 
     
    9898        self.assertEqual(data.__class__,tiff_reader.ReaderInfo) 
    9999        self.assertEqual(self.L.getAcTReader('angles_flat.png'),self.read5.__class__) 
     100    def testplugin(self): 
     101        """ test loading with plugging""" 
     102        l=Loader() 
     103        l.__setitem__() 
     104        self.assertEqual(l.__contains__('.tiff'),True) 
     105        self.assertEqual(l.__contains__('.png'),True) 
     106        self.assertEqual(self.L.getAcTReader('angles_flat.png'),tiff_reader.Reader) 
     107        self.assertEqual(self.L.load('angles_flat.png').__class__,tiff_reader.ReaderInfo) 
    100108         
    101          
Note: See TracChangeset for help on using the changeset viewer.