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

Method testCompressEmptyString

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

Source from the content-addressed store, hash-verified

837 self.assertEqual(ext_decompress(data), self.TEXT)
838
839 def testCompressEmptyString(self):
840 bz2c = BZ2Compressor()
841 data = bz2c.compress(b'')
842 data += bz2c.flush()
843 self.assertEqual(data, self.EMPTY_DATA)
844
845 def testCompressChunks10(self):
846 bz2c = BZ2Compressor()

Callers

nothing calls this directly

Calls 3

compressMethod · 0.45
flushMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected