Changeset 1b0b3ca in sasview for DataLoader/test


Ignore:
Timestamp:
Jul 7, 2008 6:39:06 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:
9a3adab
Parents:
cf3b781
Message:

not cleaned yet but working using guiframe

Location:
DataLoader/test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/testLoad.py

    r14226f4 r1b0b3ca  
    66import math 
    77import DataLoader 
    8 from DataLoader.loader import  SingleLoader 
     8from DataLoader.loader import  Loader 
    99from DataLoader.readers import TXT3_Reader,TXT2_Reader 
    1010from DataLoader.readers import IgorReader,danse_reader,tiff_reader 
    1111import os.path 
    1212class testLoader(unittest.TestCase): 
     13    
     14         
    1315    """ test fitting """ 
    1416    #Creating a loader 
    15     L=SingleLoader() 
     17    L=Loader() 
    1618     
    1719    #creating readers 
     
    98100        self.assertEqual(data.__class__,tiff_reader.ReaderInfo) 
    99101        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.