From 5d7070d2f365b54ee40e481483f35352cdfe53f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 20 Jun 2019 13:54:25 +0200 Subject: [PATCH] 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. --- python/tests/utils_test.py | 6 +----- 1 file changed, 1 insertion(+), 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