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

Method test_text_file

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

Source from the content-addressed store, hash-verified

423 b"This is a byte stream.")
424
425 def test_text_file(self):
426 # If the source is a text file-like object, use it as a character
427 # stream.
428 prep = prepare_input_source(self.make_character_stream())
429 self.assertIsNone(prep.getByteStream())
430 self.checkContent(prep.getCharacterStream(),
431 "This is a character stream.")
432
433
434# ===== 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