MCPcopy Index your code
hub / github.com/python/cpython / test_parse_InputSource

Method test_parse_InputSource

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

Source from the content-addressed store, hash-verified

193 self.check_parse(FakePath(TESTFN))
194
195 def test_parse_InputSource(self):
196 # accept data without declared but with explicitly specified encoding
197 make_xml_file(self.data, 'iso-8859-1', None)
198 with open(TESTFN, 'rb') as f:
199 input = InputSource()
200 input.setByteStream(f)
201 input.setEncoding('iso-8859-1')
202 self.check_parse(input)
203
204 def test_parse_close_source(self):
205 builtin_open = open

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