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

Method testReadTrailingJunk

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

Source from the content-addressed store, hash-verified

137 _streams.BUFFER_SIZE = buffer_size
138
139 def testReadTrailingJunk(self):
140 self.createTempFile(suffix=self.BAD_DATA)
141 with BZ2File(self.filename) as bz2f:
142 self.assertEqual(bz2f.read(), self.TEXT)
143
144 def testReadMultiStreamTrailingJunk(self):
145 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