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

Method testDecompressUnusedData

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

Source from the content-addressed store, hash-verified

893 self.assertEqual(text, self.TEXT)
894
895 def testDecompressUnusedData(self):
896 bz2d = BZ2Decompressor()
897 unused_data = b"this is unused data"
898 text = bz2d.decompress(self.DATA+unused_data)
899 self.assertEqual(text, self.TEXT)
900 self.assertEqual(bz2d.unused_data, unused_data)
901
902 def testEOFError(self):
903 bz2d = BZ2Decompressor()

Callers

nothing calls this directly

Calls 3

decompressMethod · 0.95
BZ2DecompressorClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected