diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-02-12 22:22:01 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-02-21 11:13:35 +0800 |
commit | b2ee044298caf5772fb8774dc691add3afe8cdc1 (patch) | |
tree | 151583dbe983c8265d6ef13795d0a23bbacdc6c7 /tests/hazmat | |
parent | 18ca44bfef0fe2908d9da3b3008941325d04a971 (diff) | |
download | cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.tar.gz cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.tar.bz2 cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.zip |
Minor changes for python3 compat and documentation changes
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/oath/test_hotp.py | 4 |
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): |