Changeset d3619421 in sasview for DataLoader/test


Ignore:
Timestamp:
Jul 10, 2008 11:12:37 AM (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:
85bf28c
Parents:
c45976b
Message:

modifications on test and loader

Location:
DataLoader/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DataLoader/test/testLoad.py

    r8d6440f rd3619421  
    2121import os.path 
    2222class testLoader(unittest.TestCase): 
    23     
     23    logging.debug("Inside testLoad module") 
    2424         
    2525    """ test fitting """ 
  • DataLoader/test/testplugings.py

    r94daf8a rd3619421  
    1111import os.path 
    1212import os  
     13import logging 
     14logging.basicConfig(level=logging.DEBUG, 
     15                    format='%(asctime)s %(levelname)s %(message)s', 
     16                    filename='test_log.txt', 
     17                    filemode='w') 
    1318class testLoader(unittest.TestCase): 
    14     L=Loader() 
     19     
     20    try:L=Loader() 
     21    except AttributeError,msg: 
     22        logging.warning(msg) 
    1523    def testplugin(self): 
    1624        """ test loading with readers""" 
     
    1927        self.assertEqual(self.L.__contains__('.png'),True) 
    2028        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)) 
    2134    def testplugin1(self): 
    2235        """ test loading with plugging""" 
Note: See TracChangeset for help on using the changeset viewer.