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

Method test_compressionLevel_values

Lib/test/test_zstd.py:140–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

138 self.assertEqual(s, zstd_version)
139
140 def test_compressionLevel_values(self):
141 min, max = CompressionParameter.compression_level.bounds()
142 self.assertIs(type(COMPRESSION_LEVEL_DEFAULT), int)
143 self.assertIs(type(min), int)
144 self.assertIs(type(max), int)
145 self.assertLess(min, max)
146
147 def test_roundtrip_default(self):
148 raw_dat = THIS_FILE_BYTES[: len(THIS_FILE_BYTES) // 6]

Callers

nothing calls this directly

Calls 3

boundsMethod · 0.45
assertIsMethod · 0.45
assertLessMethod · 0.45

Tested by

no test coverage detected