def setUp(self): xml.set_xml_parser(self.xml_parser)
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())
def tearDownClass(cls): xml.set_xml_parser(cls.xml_parser)