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

Method test_character_stream

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

Source from the content-addressed store, hash-verified

381
382
383 def test_character_stream(self):
384 # If the source is an InputSource with a character stream, use it.
385 src = InputSource(self.file)
386 src.setCharacterStream(self.make_character_stream())
387 prep = prepare_input_source(src)
388 self.assertIsNone(prep.getByteStream())
389 self.checkContent(prep.getCharacterStream(),
390 "This is a character stream.")
391
392 def test_byte_stream(self):
393 # If the source is an InputSource that does not have a character

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected