##// END OF EJS Templates
rust: test AncestorsIterator without duplication...
rust: test AncestorsIterator without duplication Up to now, it was acceptable to duplicate the test in `test-rust-ancestor.py` that was relevant to `dagop`. Now that we have more PyO3 implementations, it is better, and actually more convincing, to express the tests in a common base class (has technically to be a mixin to avoid running the tests from the base class itself).

File last commit:

r44446:de783805 default
r53429:3ffcdbf0 default
Show More
test_estimate_sizes.py
15 lines | 274 B | text/x-python | PythonLexer
import unittest
import zstandard as zstd
from .common import (
make_cffi,
TestCase,
)
@make_cffi
class TestSizes(TestCase):
def test_decompression_size(self):
size = zstd.estimate_decompression_context_size()
self.assertGreater(size, 100000)