Example #1
0
 def setUp(self):
     xml.set_xml_parser(self.xml_parser)
Example #2
0
 def test_set_xml_parser(self):
     # Check to see if a new parser can be set by the function `set_xml_parser`
     parser = ET.ETCompatXMLParser()
     xml.set_xml_parser(parser)
     self.assertTrue(parser is xml.get_xml_parser())
Example #3
0
 def tearDownClass(cls):
     xml.set_xml_parser(cls.xml_parser)