mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-10-22 01:37:05 -07:00
Add missing test.py file, test dep. Package-Manager: Portage-2.3.5, Repoman-2.3.2_p30
17 lines
269 B
Python
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()
|
|
|