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

Method test_expat_locator_noinfo

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

Source from the content-addressed store, hash-verified

1302
1303 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1304 def test_expat_locator_noinfo(self):
1305 result = BytesIO()
1306 xmlgen = XMLGenerator(result)
1307 parser = create_parser()
1308 parser.setContentHandler(xmlgen)
1309
1310 parser.feed("<doc>")
1311 parser.feed("</doc>")
1312 parser.close()
1313
1314 self.assertEqual(parser.getSystemId(), None)
1315 self.assertEqual(parser.getPublicId(), None)
1316 self.assertEqual(parser.getLineNumber(), 1)
1317
1318 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1319 def test_expat_locator_withinfo(self):

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