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

Method test_system_id

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

Source from the content-addressed store, hash-verified

400 b"This is a byte stream.")
401
402 def test_system_id(self):
403 # If the source is an InputSource that has neither a character
404 # stream nor a byte stream, open the system ID.
405 src = InputSource(self.file)
406 prep = prepare_input_source(src)
407 self.assertIsNone(prep.getCharacterStream())
408 self.checkContent(prep.getByteStream(),
409 b"This was read from a file.")
410
411 def test_string(self):
412 # If the source is a string, use it as a system ID and open it.

Callers

nothing calls this directly

Calls 6

checkContentMethod · 0.95
InputSourceClass · 0.90
prepare_input_sourceFunction · 0.90
assertIsNoneMethod · 0.80
getCharacterStreamMethod · 0.80
getByteStreamMethod · 0.80

Tested by

no test coverage detected