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

Method testReadChunk10

Lib/test/test_bz2.py:165–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 self.assertEqual(bz2f.read(0), b"")
164
165 def testReadChunk10(self):
166 self.createTempFile()
167 with BZ2File(self.filename) as bz2f:
168 text = b''
169 while True:
170 str = bz2f.read(10)
171 if not str:
172 break
173 text += str
174 self.assertEqual(text, self.TEXT)
175
176 def testReadChunk10MultiStream(self):
177 self.createTempFile(streams=5)

Callers

nothing calls this directly

Calls 4

createTempFileMethod · 0.95
BZ2FileClass · 0.90
readMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected