Changeset 3241dd2 in sasview for test


Ignore:
Timestamp:
Sep 25, 2014 10:33:41 AM (10 years ago)
Author:
Jeff Krzywon <jeffery.krzywon@…>
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:
a91bc5d
Parents:
72cdbec
Message:

Fixed the issue as described in ticket 269: "Failure to assign model when using attached data file" and made the change for ticket 264: "Remove .TIF extension from Load Data file extension filter."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sansdataloader/test/utest_cansas.py

    rac5b69d r3241dd2  
    22    Unit tests for the new recursive cansas reader 
    33""" 
     4import logging 
    45import warnings 
    56warnings.simplefilter("ignore") 
     
    5152            name = self.get_number_of_entries(dictionary, name, i) 
    5253        return name 
     54     
     55     
     56    def test_invalid_xml(self): 
     57        """ 
     58        Should fail gracefully and send a message to logging.info() 
     59        """ 
     60        invalid = StringIO.StringIO('<a><c></b></a>') 
     61        reader = XMLreader(invalid) 
    5362        
    5463 
     
    203212            ## find the processing instructions and make into a dictionary 
    204213            dic = self.get_processing_instructions(reader) 
    205             self.assertTrue(dic == {'xml-stylesheet': 'type="text/xsl" href="cansas1d.xsl" '}) 
     214            self.assertTrue(dic == {'xml-stylesheet': \ 
     215                                    'type="text/xsl" href="cansas1d.xsl" '}) 
    206216             
    207217            xml = "<test><a><b><c></c></b></a></test>" 
Note: See TracChangeset for help on using the changeset viewer.