MCPcopy Index your code
hub / github.com/python/cpython / test_expat_binary_file_int_name

Method test_expat_binary_file_int_name

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

Source from the content-addressed store, hash-verified

932 self.assertEqual(result.getvalue(), xml_test_out)
933
934 def test_expat_binary_file_int_name(self):
935 parser = create_parser()
936 result = BytesIO()
937 xmlgen = XMLGenerator(result)
938
939 parser.setContentHandler(xmlgen)
940 with open(TEST_XMLFILE, 'rb') as f:
941 with open(f.fileno(), 'rb', closefd=False) as f2:
942 parser.parse(f2)
943
944 self.assertEqual(result.getvalue(), xml_test_out)
945
946 # ===== DTDHandler support
947

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