Changeset 1b0b3ca in sasview for DataLoader/test
- Timestamp:
- Jul 7, 2008 6:39:06 PM (16 years ago)
- 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:
- 9a3adab
- Parents:
- cf3b781
- Location:
- DataLoader/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/testLoad.py
r14226f4 r1b0b3ca 6 6 import math 7 7 import DataLoader 8 from DataLoader.loader import SingleLoader8 from DataLoader.loader import Loader 9 9 from DataLoader.readers import TXT3_Reader,TXT2_Reader 10 10 from DataLoader.readers import IgorReader,danse_reader,tiff_reader 11 11 import os.path 12 12 class testLoader(unittest.TestCase): 13 14 13 15 """ test fitting """ 14 16 #Creating a loader 15 L= SingleLoader()17 L=Loader() 16 18 17 19 #creating readers … … 98 100 self.assertEqual(data.__class__,tiff_reader.ReaderInfo) 99 101 self.assertEqual(self.L.getAcTReader('angles_flat.png'),self.read5.__class__) 100 def testplugin(self): 101 """ test loading with plugging""" 102 l=SingleLoader() 103 self.assertEqual(l.__contains__('.tiff'),True) 104 self.assertEqual(l.__contains__('.png'),True) 105 self.assertEqual(self.L.getAcTReader('angles_flat.png'),tiff_reader.Reader) 106 self.assertEqual(self.L.load('angles_flat.png').__class__,tiff_reader.ReaderInfo) 107 102 103
Note: See TracChangeset
for help on using the changeset viewer.