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

Method testDecompress

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

Source from the content-addressed store, hash-verified

875 self.assertRaises(TypeError, BZ2Decompressor, 42)
876
877 def testDecompress(self):
878 bz2d = BZ2Decompressor()
879 self.assertRaises(TypeError, bz2d.decompress)
880 text = bz2d.decompress(self.DATA)
881 self.assertEqual(text, self.TEXT)
882
883 def testDecompressChunks10(self):
884 bz2d = BZ2Decompressor()

Callers

nothing calls this directly

Calls 4

decompressMethod · 0.95
BZ2DecompressorClass · 0.90
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected