diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-02-13 18:52:31 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-02-21 11:13:35 +0800 |
commit | b5189afaf1dd1c06edd0efe3d6791ea7c40e31c7 (patch) | |
tree | 5d19ddb2ff150be98f22f104acaea3da44e82a08 /tests/hazmat/oath/test_hotp.py | |
parent | 25b1d21b40f531450877bcfbee55406b28111dca (diff) | |
download | cryptography-b5189afaf1dd1c06edd0efe3d6791ea7c40e31c7.tar.gz cryptography-b5189afaf1dd1c06edd0efe3d6791ea7c40e31c7.tar.bz2 cryptography-b5189afaf1dd1c06edd0efe3d6791ea7c40e31c7.zip |
Added a max limit of 8 on length parameter. Updated documentation.
Diffstat (limited to 'tests/hazmat/oath/test_hotp.py')
-rw-r--r-- | tests/hazmat/oath/test_hotp.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/hazmat/oath/test_hotp.py b/tests/hazmat/oath/test_hotp.py index 47292654..7b1db93d 100644 --- a/tests/hazmat/oath/test_hotp.py +++ b/tests/hazmat/oath/test_hotp.py @@ -35,15 +35,13 @@ class TestHOTP(object): secret = os.urandom(10) with pytest.raises(ValueError): - hotp = HOTP(secret, 6, backend) - hotp.generate(0) + HOTP(secret, 6, backend) def test_invalid_hotp_length(self, backend): secret = os.urandom(16) with pytest.raises(ValueError): - hotp = HOTP(secret, 4, backend) - hotp.generate(0) + HOTP(secret, 4, backend) @pytest.mark.parametrize("params", vectors) def test_truncate(self, backend, params): |