source: sasview/DataLoader/test/testplugings.py @ 9cd84ee

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 9cd84ee was d22da51, checked in by Gervaise Alina <gervyh@…>, 16 years ago

clean and more testing added

  • Property mode set to 100644
File size: 597 bytes
Line 
1"""
2    Unit tests for DataLoader module
3"""
4
5import unittest
6import math
7import DataLoader
8from DataLoader.loader import  Loader
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=Loader()
18        self.assertEqual(l.__contains__('.tiff'),True)
19        self.assertEqual(l.__contains__('.png'),True)
20        self.assertEqual(l.__contains__('.txt'),True)
21       
Note: See TracBrowser for help on using the repository browser.