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

Method test_text_file

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

Source from the content-addressed store, hash-verified

431 b"This is a byte stream.")
432
433 def test_text_file(self):
434 # If the source is a text file-like object, use it as a character
435 # stream.
436 prep = prepare_input_source(self.make_character_stream())
437 self.assertIsNone(prep.getByteStream())
438 self.checkContent(prep.getCharacterStream(),
439 "This is a character stream.")
440
441
442# ===== XMLGenerator

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected