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

Method test_system_id

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

Source from the content-addressed store, hash-verified

392 b"This is a byte stream.")
393
394 def test_system_id(self):
395 # If the source is an InputSource that has neither a character
396 # stream nor a byte stream, open the system ID.
397 src = InputSource(self.file)
398 prep = prepare_input_source(src)
399 self.assertIsNone(prep.getCharacterStream())
400 self.checkContent(prep.getByteStream(),
401 b"This was read from a file.")
402
403 def test_string(self):
404 # 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