source: sasview/DataLoader/test/testplugings.py @ 900c787

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 900c787 was 1b0b3ca, checked in by Gervaise Alina <gervyh@…>, 16 years ago

not cleaned yet but working using guiframe

  • Property mode set to 100644
File size: 814 bytes
Line 
1"""
2    Unit tests for DataLoader module
3"""
4
5import unittest
6import math
7import DataLoader
8from DataLoader.loader import  SingleLoader
9from DataLoader.readers import TXT3_Reader,TXT2_Reader
10from DataLoader.readers import IgorReader,danse_reader,tiff_reader
11import os.path
12import os 
13class testLoader(unittest.TestCase):
14   
15    def testplugin(self):
16        """ test loading with plugging"""
17        l=SingleLoader()
18        self.assertEqual(l.__contains__('.tiff'),True)
19        self.assertEqual(l.__contains__('.png'),True)
20        self.assertEqual(l.__contains__('.txt'),True)
21        #self.assertEqual(l.getAcTReader('angles_flat.png'),tiff_reader.Reader)
22        #self.assertEqual(l.load('angles_flat.png').__class__,tiff_reader.ReaderInfo)
23        #print l.load('_THETA_weights.txt')
Note: See TracBrowser for help on using the repository browser.