aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-lz4/02-tests.patch
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-04-24 23:23:04 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-05-05 15:31:39 +0000
commitc1a5d64686d055f0a7b2ac2cc0a53567bbcbe8a3 (patch)
treef40d5198d65d47435db5745908bb4432d317979d /testing/py-lz4/02-tests.patch
parentcc7187ce9a618ff10a14c774fdb366e2ade03466 (diff)
downloadaports-c1a5d64686d055f0a7b2ac2cc0a53567bbcbe8a3.tar.bz2
aports-c1a5d64686d055f0a7b2ac2cc0a53567bbcbe8a3.tar.xz
testing/py-lz4: new aport
closes https://bugs.alpinelinux.org/issues/5480
Diffstat (limited to 'testing/py-lz4/02-tests.patch')
-rw-r--r--testing/py-lz4/02-tests.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/py-lz4/02-tests.patch b/testing/py-lz4/02-tests.patch
new file mode 100644
index 0000000000..dc1cb06926
--- /dev/null
+++ b/testing/py-lz4/02-tests.patch
@@ -0,0 +1,24 @@
+Last-Update: 2014-08-10
+Origin: https://github.com/steeve/python-lz4/blob/master/tests/test.py
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob@member.fsf.org>
+Description: add basic test
+
+--- /dev/null
++++ b/tests/test.py
+@@ -0,0 +1,15 @@
++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()