summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_hash.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_hash.py b/tests/test_hash.py
index 6a134f0..8ed4617 100644
--- a/tests/test_hash.py
+++ b/tests/test_hash.py
@@ -26,6 +26,14 @@ class HashAPITest(unittest.TestCase):
self.assertRaises(gemato.hash.UnsupportedHash,
gemato.hash.get_hash_by_name, '_invalid_name_')
+ def test_get_invalid_pyblake2(self):
+ self.assertRaises(gemato.hash.UnsupportedHash,
+ gemato.hash.get_hash_by_name, 'blake2zzz')
+
+ def test_get_invalid_pysha3(self):
+ self.assertRaises(gemato.hash.UnsupportedHash,
+ gemato.hash.get_hash_by_name, 'sha3_987')
+
def test_hash_file(self):
f = io.BytesIO(TEST_STRING)
self.assertDictEqual(gemato.hash.hash_file(f, ('md5', 'sha1', 'sha256')),