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

Method checkContent

Lib/test/test_sax.py:369–372  ·  view source on GitHub ↗
(self, stream, content)

Source from the content-addressed store, hash-verified

367 return StringIO("This is a character stream.")
368
369 def checkContent(self, stream, content):
370 self.assertIsNotNone(stream)
371 self.assertEqual(stream.read(), content)
372 stream.close()
373
374
375 def test_character_stream(self):

Callers 7

test_character_streamMethod · 0.95
test_byte_streamMethod · 0.95
test_system_idMethod · 0.95
test_stringMethod · 0.95
test_path_objectsMethod · 0.95
test_binary_fileMethod · 0.95
test_text_fileMethod · 0.95

Calls 4

assertIsNotNoneMethod · 0.80
assertEqualMethod · 0.45
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected