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

Method test_expat_inpsource_filename

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

Source from the content-addressed store, hash-verified

1145
1146 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1147 def test_expat_inpsource_filename(self):
1148 parser = create_parser()
1149 result = BytesIO()
1150 xmlgen = XMLGenerator(result)
1151
1152 parser.setContentHandler(xmlgen)
1153 parser.parse(TEST_XMLFILE)
1154
1155 self.assertEqual(result.getvalue(), xml_test_out)
1156
1157 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
1158 def test_expat_inpsource_sysid(self):

Callers

nothing calls this directly

Calls 7

getvalueMethod · 0.95
create_parserFunction · 0.90
BytesIOClass · 0.90
XMLGeneratorClass · 0.90
setContentHandlerMethod · 0.45
parseMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected