test_estimate_sizes.py
15 lines
| 274 B
| text/x-python
|
PythonLexer
Gregory Szorc
|
r37513 | import unittest | ||
Gregory Szorc
|
r30435 | |||
Gregory Szorc
|
r37513 | import zstandard as zstd | ||
Gregory Szorc
|
r30435 | |||
Gregory Szorc
|
r44446 | from .common import ( | ||
Gregory Szorc
|
r30895 | make_cffi, | ||
Gregory Szorc
|
r44446 | TestCase, | ||
Gregory Szorc
|
r30895 | ) | ||
Gregory Szorc
|
r30435 | |||
Gregory Szorc
|
r30895 | |||
@make_cffi | ||||
Gregory Szorc
|
r44446 | class TestSizes(TestCase): | ||
Gregory Szorc
|
r30435 | def test_decompression_size(self): | ||
size = zstd.estimate_decompression_context_size() | ||||
self.assertGreater(size, 100000) | ||||