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

Method test_roundtrip_xz

Lib/test/test_lzma.py:278–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

276 # Test that LZMACompressor->LZMADecompressor preserves the input data.
277
278 def test_roundtrip_xz(self):
279 lzc = LZMACompressor()
280 cdata = lzc.compress(INPUT) + lzc.flush()
281 lzd = LZMADecompressor()
282 self._test_decompressor(lzd, cdata, lzma.CHECK_CRC64)
283
284 def test_roundtrip_alone(self):
285 lzc = LZMACompressor(lzma.FORMAT_ALONE)

Callers

nothing calls this directly

Calls 5

compressMethod · 0.95
flushMethod · 0.95
_test_decompressorMethod · 0.95
LZMACompressorClass · 0.85
LZMADecompressorClass · 0.85

Tested by

no test coverage detected