view contrib/python-zstandard/tests/test_estimate_sizes.py @ 37774:d6970628b95f

fix: use templater to substitute values in command string bytes.format() isn't supported on Python 3. Luckily, our template syntax is similar so we can reuse it. We need a hack to disable \-escapes as '\' is a directory separator on Windows.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Apr 2018 00:30:39 +0900
parents b1fb341d8a61
children de7838053207
line wrap: on
line source

import unittest

import zstandard as zstd

from . common import (
    make_cffi,
)


@make_cffi
class TestSizes(unittest.TestCase):
    def test_decompression_size(self):
        size = zstd.estimate_decompression_context_size()
        self.assertGreater(size, 100000)