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

Method testReadChunk10MultiStream

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

Source from the content-addressed store, hash-verified

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

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