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

Method testReadChunk10MultiStream

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

Source from the content-addressed store, hash-verified

174 self.assertEqual(text, self.TEXT)
175
176 def testReadChunk10MultiStream(self):
177 self.createTempFile(streams=5)
178 with BZ2File(self.filename) as bz2f:
179 text = b''
180 while True:
181 str = bz2f.read(10)
182 if not str:
183 break
184 text += str
185 self.assertEqual(text, self.TEXT * 5)
186
187 def testRead100(self):
188 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