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

Method test_string

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

Source from the content-addressed store, hash-verified

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.
405 prep = prepare_input_source(self.file)
406 self.assertIsNone(prep.getCharacterStream())
407 self.checkContent(prep.getByteStream(),
408 b"This was read from a file.")
409
410 def test_path_objects(self):
411 # If the source is a Path object, use it as a system ID and open it.

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected