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

Method testReadTrailingJunk

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

Source from the content-addressed store, hash-verified

147 _streams.BUFFER_SIZE = buffer_size
148
149 def testReadTrailingJunk(self):
150 self.createTempFile(suffix=self.BAD_DATA)
151 with BZ2File(self.filename) as bz2f:
152 self.assertEqual(bz2f.read(), self.TEXT)
153
154 def testReadMultiStreamTrailingJunk(self):
155 self.createTempFile(streams=5, suffix=self.BAD_DATA)

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