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

Method test_parse_InputSource

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

Source from the content-addressed store, hash-verified

197
198 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
199 def test_parse_InputSource(self):
200 # accept data without declared but with explicitly specified encoding
201 make_xml_file(self.data, 'iso-8859-1', None)
202 with open(TESTFN, 'rb') as f:
203 input = InputSource()
204 input.setByteStream(f)
205 input.setEncoding('iso-8859-1')
206 self.check_parse(input)
207
208 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
209 def test_parse_close_source(self):

Callers

nothing calls this directly

Calls 6

setByteStreamMethod · 0.95
setEncodingMethod · 0.95
check_parseMethod · 0.95
InputSourceClass · 0.90
make_xml_fileFunction · 0.85
openFunction · 0.50

Tested by

no test coverage detected