MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_expat_binary_file

Method test_expat_binary_file

Lib/test/test_sax.py:895–904  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 8

getvalueMethod · 0.95
create_parserFunction · 0.90
BytesIOClass · 0.90
XMLGeneratorClass · 0.90
openFunction · 0.50
setContentHandlerMethod · 0.45
parseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected