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

Method test_expat_binary_file_int_name

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

Source from the content-addressed store, hash-verified

946
947 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
948 def test_expat_binary_file_int_name(self):
949 parser = create_parser()
950 result = BytesIO()
951 xmlgen = XMLGenerator(result)
952
953 parser.setContentHandler(xmlgen)
954 with open(TEST_XMLFILE, 'rb') as f:
955 with open(f.fileno(), 'rb', closefd=False) as f2:
956 parser.parse(f2)
957
958 self.assertEqual(result.getvalue(), xml_test_out)
959
960 # ===== DTDHandler support
961

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected