aboutsummaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2019-06-20 13:54:25 +0200
committerDamir Jelić <poljar@termina.org.uk>2019-06-20 13:55:03 +0200
commit5d7070d2f365b54ee40e481483f35352cdfe53f5 (patch)
tree0e06fe7f1a06c47b0d9fd29279ab4dda9440686b /python/tests
parent125c62098c35e2e7fcf4ad916d764a5a69edd9b9 (diff)
tests: Simplify the sha256 tests for python.
Hypothesis isn't used anymore and the strings are now constants, meaning that the hashes should never match.
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/utils_test.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/python/tests/utils_test.py b/python/tests/utils_test.py
index 9d22157..86fb34f 100644
--- a/python/tests/utils_test.py
+++ b/python/tests/utils_test.py
@@ -21,9 +21,5 @@ class TestClass(object):
hashlib_hash = bytes_to_native_str(hashlib_hash[:-1])
- if input1 == input2:
- assert first_hash == second_hash
- else:
- assert first_hash != second_hash
-
+ assert first_hash != second_hash
assert hashlib_hash == first_hash