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

Method test_expat_incremental

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

Source from the content-addressed store, hash-verified

1213
1214 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1215 def test_expat_incremental(self):
1216 result = BytesIO()
1217 xmlgen = XMLGenerator(result)
1218 parser = create_parser()
1219 parser.setContentHandler(xmlgen)
1220
1221 parser.feed("<doc>")
1222 parser.feed("</doc>")
1223 parser.close()
1224
1225 self.assertEqual(result.getvalue(), start + b"<doc></doc>")
1226
1227 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1228 def test_expat_incremental_reset(self):

Callers

nothing calls this directly

Calls 8

getvalueMethod · 0.95
BytesIOClass · 0.90
XMLGeneratorClass · 0.90
create_parserFunction · 0.90
setContentHandlerMethod · 0.45
feedMethod · 0.45
closeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected