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

Method test_expat_inpsource_sysid

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

Source from the content-addressed store, hash-verified

1131 self.assertEqual(result.getvalue(), xml_test_out)
1132
1133 def test_expat_inpsource_sysid(self):
1134 parser = create_parser()
1135 result = BytesIO()
1136 xmlgen = XMLGenerator(result)
1137
1138 parser.setContentHandler(xmlgen)
1139 parser.parse(InputSource(TEST_XMLFILE))
1140
1141 self.assertEqual(result.getvalue(), xml_test_out)
1142
1143 @requires_nonascii_filenames
1144 def test_expat_inpsource_sysid_nonascii(self):

Callers

nothing calls this directly

Calls 8

getvalueMethod · 0.95
create_parserFunction · 0.90
BytesIOClass · 0.90
XMLGeneratorClass · 0.90
InputSourceClass · 0.90
setContentHandlerMethod · 0.45
parseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected