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

Method testReadChunk10

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

Source from the content-addressed store, hash-verified

153 self.assertEqual(bz2f.read(0), b"")
154
155 def testReadChunk10(self):
156 self.createTempFile()
157 with BZ2File(self.filename) as bz2f:
158 text = b''
159 while True:
160 str = bz2f.read(10)
161 if not str:
162 break
163 text += str
164 self.assertEqual(text, self.TEXT)
165
166 def testReadChunk10MultiStream(self):
167 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