summaryrefslogtreecommitdiff
path: root/tests/common/fnv1a.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-02-21 13:26:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-02-21 13:26:27 (GMT)
commitdc3be188b42a90404d0655c250e6697f5a55b862 (patch)
tree7b9625b446caa35006a5517acaa18ec39c307097 /tests/common/fnv1a.py
parent9a080bc3f8184a5663ce42c3c74ae80e1ae598a0 (diff)
Delete intermediate Python modules for some API features.
Diffstat (limited to 'tests/common/fnv1a.py')
-rw-r--r--tests/common/fnv1a.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/common/fnv1a.py b/tests/common/fnv1a.py
index 2013afa..3bb7c32 100644
--- a/tests/common/fnv1a.py
+++ b/tests/common/fnv1a.py
@@ -4,22 +4,15 @@ from pychrysalide.common import fnv1a
class TestFnv1a(ChrysalideTestCase):
- """TestCase for common.fnv1a*"""
-
- def testFnv1aConstructor(self):
- """Check that no constructor is available for the fnv1a class."""
-
- with self.assertRaisesRegex(NotImplementedError, 'Chrysalide does not allow building this kind of object from Python'):
- instance = fnv1a()
-
+ """TestCase for common FNV-1a hashing features."""
def testFnv1aSamples(self):
"""Compute some Fnv1a hashs."""
# Test cases from http://isthe.com/chongo/src/fnv/test_fnv.c
- val = fnv1a.hash('')
+ val = fnv1a('')
self.assertEqual(val, 0xcbf29ce484222325)
- val = fnv1a.hash('chongo was here!\n')
+ val = fnv1a('chongo was here!\n')
self.assertEqual(val, 0x46810940eff5f915)