From b2ee044298caf5772fb8774dc691add3afe8cdc1 Mon Sep 17 00:00:00 2001 From: Ayrx Date: Wed, 12 Feb 2014 22:22:01 +0800 Subject: Minor changes for python3 compat and documentation changes --- tests/hazmat/oath/test_hotp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3