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

Method testCompress

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

Source from the content-addressed store, hash-verified

1048
1049class CompressDecompressTest(BaseTest):
1050 def testCompress(self):
1051 data = bz2.compress(self.TEXT)
1052 self.assertEqual(ext_decompress(data), self.TEXT)
1053
1054 def testCompressEmptyString(self):
1055 text = bz2.compress(b'')

Callers

nothing calls this directly

Calls 3

ext_decompressFunction · 0.85
compressMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected