MCPcopy Create free account
hub / github.com/RustPython/RustPython / testReadMultiStreamTrailingJunk

Method testReadMultiStreamTrailingJunk

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

Source from the content-addressed store, hash-verified

142 self.assertEqual(bz2f.read(), self.TEXT)
143
144 def testReadMultiStreamTrailingJunk(self):
145 self.createTempFile(streams=5, suffix=self.BAD_DATA)
146 with BZ2File(self.filename) as bz2f:
147 self.assertEqual(bz2f.read(), self.TEXT * 5)
148
149 def testRead0(self):
150 self.createTempFile()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected