From 25b1d21b40f531450877bcfbee55406b28111dca Mon Sep 17 00:00:00 2001 From: Ayrx Date: Thu, 13 Feb 2014 15:30:20 +0800 Subject: Updated documentation. --- tests/hazmat/oath/test_hotp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/hazmat/oath/test_hotp.py') 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): -- cgit v1.2.3