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

Method test_expat_locator_withinfo

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

Source from the content-addressed store, hash-verified

1283 self.assertEqual(parser.getLineNumber(), 1)
1284
1285 def test_expat_locator_withinfo(self):
1286 result = BytesIO()
1287 xmlgen = XMLGenerator(result)
1288 parser = create_parser()
1289 parser.setContentHandler(xmlgen)
1290 parser.parse(TEST_XMLFILE)
1291
1292 self.assertEqual(parser.getSystemId(), TEST_XMLFILE)
1293 self.assertEqual(parser.getPublicId(), None)
1294
1295 @requires_nonascii_filenames
1296 def test_expat_locator_withinfo_nonascii(self):

Callers

nothing calls this directly

Calls 8

BytesIOClass · 0.90
XMLGeneratorClass · 0.90
create_parserFunction · 0.90
setContentHandlerMethod · 0.45
parseMethod · 0.45
assertEqualMethod · 0.45
getSystemIdMethod · 0.45
getPublicIdMethod · 0.45

Tested by

no test coverage detected