summaryrefslogtreecommitdiff
blob: 9469a03da328f7b01a74b5f2f6d7b3bce47c373e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()