- Timestamp:
- Sep 25, 2014 10:33:41 AM (10 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:
- a91bc5d
- Parents:
- 72cdbec
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sansdataloader/test/utest_cansas.py
rac5b69d r3241dd2 2 2 Unit tests for the new recursive cansas reader 3 3 """ 4 import logging 4 5 import warnings 5 6 warnings.simplefilter("ignore") … … 51 52 name = self.get_number_of_entries(dictionary, name, i) 52 53 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) 53 62 54 63 … … 203 212 ## find the processing instructions and make into a dictionary 204 213 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" '}) 206 216 207 217 xml = "<test><a><b><c></c></b></a></test>"
Note: See TracChangeset
for help on using the changeset viewer.