Changeset d3619421 in sasview for DataLoader/test
- Timestamp:
- Jul 10, 2008 11:12:37 AM (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:
- 85bf28c
- Parents:
- c45976b
- Location:
- DataLoader/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
DataLoader/test/testLoad.py
r8d6440f rd3619421 21 21 import os.path 22 22 class testLoader(unittest.TestCase): 23 23 logging.debug("Inside testLoad module") 24 24 25 25 """ test fitting """ -
DataLoader/test/testplugings.py
r94daf8a rd3619421 11 11 import os.path 12 12 import os 13 import logging 14 logging.basicConfig(level=logging.DEBUG, 15 format='%(asctime)s %(levelname)s %(message)s', 16 filename='test_log.txt', 17 filemode='w') 13 18 class testLoader(unittest.TestCase): 14 L=Loader() 19 20 try:L=Loader() 21 except AttributeError,msg: 22 logging.warning(msg) 15 23 def testplugin(self): 16 24 """ test loading with readers""" … … 19 27 self.assertEqual(self.L.__contains__('.png'),True) 20 28 self.assertEqual(self.L.__contains__('.txt'),True) 29 #tested corrupted file.asc 30 try:self.L.load('MAR07232_rest.ASC') 31 except AttributeError,msg: 32 #logging.log(10,str(msg)) 33 logging.warning(str(msg)) 21 34 def testplugin1(self): 22 35 """ test loading with plugging"""
Note: See TracChangeset
for help on using the changeset viewer.