(self)
| 893 | |
| 894 | @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing' |
| 895 | def test_expat_binary_file(self): |
| 896 | parser = create_parser() |
| 897 | result = BytesIO() |
| 898 | xmlgen = XMLGenerator(result) |
| 899 | |
| 900 | parser.setContentHandler(xmlgen) |
| 901 | with open(TEST_XMLFILE, 'rb') as f: |
| 902 | parser.parse(f) |
| 903 | |
| 904 | self.assertEqual(result.getvalue(), xml_test_out) |
| 905 | |
| 906 | @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing' |
| 907 | def test_expat_text_file(self): |
nothing calls this directly
no test coverage detected