aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/oath/test_hotp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hazmat/oath/test_hotp.py b/tests/hazmat/oath/test_hotp.py
index 8a5aebd3..47292654 100644
--- a/tests/hazmat/oath/test_hotp.py
+++ b/tests/hazmat/oath/test_hotp.py
@@ -53,7 +53,7 @@ class TestHOTP(object):
hotp = HOTP(secret, 6, backend)
- assert hex(hotp._dynamic_truncate(counter))[2:] == truncated.decode()
+ assert hotp._dynamic_truncate(counter) == int(truncated.decode(), 16)
@pytest.mark.parametrize("params", vectors)
def test_generate(self, backend, params):