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

Method testCompress

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

Source from the content-addressed store, hash-verified

830
831class BZ2CompressorTest(BaseTest):
832 def testCompress(self):
833 bz2c = BZ2Compressor()
834 self.assertRaises(TypeError, bz2c.compress)
835 data = bz2c.compress(self.TEXT)
836 data += bz2c.flush()
837 self.assertEqual(ext_decompress(data), self.TEXT)
838
839 def testCompressEmptyString(self):
840 bz2c = BZ2Compressor()

Callers

nothing calls this directly

Calls 5

ext_decompressFunction · 0.85
assertRaisesMethod · 0.45
compressMethod · 0.45
flushMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected