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

Method testSeekPreStartMultiStream

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

Source from the content-addressed store, hash-verified

378 self.assertEqual(bz2f.read(), self.TEXT)
379
380 def testSeekPreStartMultiStream(self):
381 self.createTempFile(streams=2)
382 with BZ2File(self.filename) as bz2f:
383 bz2f.seek(-150)
384 self.assertEqual(bz2f.tell(), 0)
385 self.assertEqual(bz2f.read(), self.TEXT * 2)
386
387 def testFileno(self):
388 self.createTempFile()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected