##// END OF EJS Templates
branching: merge stable into default
branching: merge stable into default

File last commit:

r54028:fa71dcfb merge stable
r54034:1b4a024f merge default
Show More
test_compressor.py
13 lines | 333 B | text/x-python | PythonLexer
import unittest
import zstandard as zstd
class TestCompressor(unittest.TestCase):
def test_level_bounds(self):
with self.assertRaises(ValueError):
zstd.ZstdCompressor(level=23)
def test_memory_size(self):
cctx = zstd.ZstdCompressor(level=1)
self.assertGreater(cctx.memory_size(), 100)