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

Method test_character_stream

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

Source from the content-addressed store, hash-verified

373
374
375 def test_character_stream(self):
376 # If the source is an InputSource with a character stream, use it.
377 src = InputSource(self.file)
378 src.setCharacterStream(self.make_character_stream())
379 prep = prepare_input_source(src)
380 self.assertIsNone(prep.getByteStream())
381 self.checkContent(prep.getCharacterStream(),
382 "This is a character stream.")
383
384 def test_byte_stream(self):
385 # 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