contrib/python-zstandard/tests/test_estimate_sizes.py
author Raphaël Gomès <rgomes@octobus.net>
Mon, 02 Aug 2021 16:23:45 +0200
branchstable
changeset 47792 6c86f96042c9
parent 43994 de7838053207
permissions -rw-r--r--
heptapod-ci: enable pytype testing for all pipelines Now that pytype agrees with the codebase, let's run it by default to catch regressions. Differential Revision: https://phab.mercurial-scm.org/D11242

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)