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