aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-02-13 15:30:20 +0800
committerAyrx <terrycwk1994@gmail.com>2014-02-21 11:13:35 +0800
commit25b1d21b40f531450877bcfbee55406b28111dca (patch)
tree98e599079f6f18b274d277e3c5ea59313e19262d /tests
parenta7769110ef8f575105847f84cadf6bb5b9aa5fba (diff)
downloadcryptography-25b1d21b40f531450877bcfbee55406b28111dca.tar.gz
cryptography-25b1d21b40f531450877bcfbee55406b28111dca.tar.bz2
cryptography-25b1d21b40f531450877bcfbee55406b28111dca.zip
Updated documentation.
Diffstat (limited to 'tests')
-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):