Files
gentoo/dev-python/lz4/files/test.py
Brian Dolbec 17c73c9902 dev-python/lz4: Enable tests, add python-3.6 to PYTHON_COMPAT
Add missing test.py file, test dep.

Package-Manager: Portage-2.3.5, Repoman-2.3.2_p30
2017-05-15 19:07:10 -07:00

17 lines
269 B
Python

import lz4
import sys
import unittest
import os
class TestLZ4(unittest.TestCase):
def test_random(self):
DATA = os.urandom(128 * 1024) # Read 128kb
self.assertEqual(DATA, lz4.loads(lz4.dumps(DATA)))
if __name__ == '__main__':
unittest.main()