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

Method test_string

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

Source from the content-addressed store, hash-verified

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.
413 prep = prepare_input_source(self.file)
414 self.assertIsNone(prep.getCharacterStream())
415 self.checkContent(prep.getByteStream(),
416 b"This was read from a file.")
417
418 def test_path_objects(self):
419 # 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