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

Method test_expat_locator_withinfo

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

Source from the content-addressed store, hash-verified

1317
1318 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1319 def test_expat_locator_withinfo(self):
1320 result = BytesIO()
1321 xmlgen = XMLGenerator(result)
1322 parser = create_parser()
1323 parser.setContentHandler(xmlgen)
1324 parser.parse(TEST_XMLFILE)
1325
1326 self.assertEqual(parser.getSystemId(), TEST_XMLFILE)
1327 self.assertEqual(parser.getPublicId(), None)
1328
1329 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1330 @requires_nonascii_filenames

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