MCPcopy Create free account
hub / github.com/python/cpython / test_expat_locator_noinfo

Method test_expat_locator_noinfo

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

Source from the content-addressed store, hash-verified

1269 # ===== Locator support
1270
1271 def test_expat_locator_noinfo(self):
1272 result = BytesIO()
1273 xmlgen = XMLGenerator(result)
1274 parser = create_parser()
1275 parser.setContentHandler(xmlgen)
1276
1277 parser.feed("<doc>")
1278 parser.feed("</doc>")
1279 parser.close()
1280
1281 self.assertEqual(parser.getSystemId(), None)
1282 self.assertEqual(parser.getPublicId(), None)
1283 self.assertEqual(parser.getLineNumber(), 1)
1284
1285 def test_expat_locator_withinfo(self):
1286 result = BytesIO()

Callers

nothing calls this directly

Calls 10

BytesIOClass · 0.90
XMLGeneratorClass · 0.90
create_parserFunction · 0.90
setContentHandlerMethod · 0.45
feedMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45
getSystemIdMethod · 0.45
getPublicIdMethod · 0.45
getLineNumberMethod · 0.45

Tested by

no test coverage detected