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
|
Rev | Line | |
---|
[1b0b3ca] | 1 | """ |
---|
| 2 | Unit tests for DataLoader module |
---|
| 3 | """ |
---|
| 4 | |
---|
| 5 | import unittest |
---|
| 6 | import math |
---|
| 7 | import DataLoader |
---|
[d22da51] | 8 | from DataLoader.loader import Loader |
---|
[1b0b3ca] | 9 | from DataLoader.readers import TXT3_Reader,TXT2_Reader |
---|
| 10 | from DataLoader.readers import IgorReader,danse_reader,tiff_reader |
---|
| 11 | import os.path |
---|
| 12 | import os |
---|
| 13 | class testLoader(unittest.TestCase): |
---|
| 14 | |
---|
| 15 | def testplugin(self): |
---|
| 16 | """ test loading with plugging""" |
---|
[d22da51] | 17 | l=Loader() |
---|
[1b0b3ca] | 18 | self.assertEqual(l.__contains__('.tiff'),True) |
---|
| 19 | self.assertEqual(l.__contains__('.png'),True) |
---|
| 20 | self.assertEqual(l.__contains__('.txt'),True) |
---|
[d22da51] | 21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.