From b5189afaf1dd1c06edd0efe3d6791ea7c40e31c7 Mon Sep 17 00:00:00 2001 From: Ayrx Date: Thu, 13 Feb 2014 18:52:31 +0800 Subject: Added a max limit of 8 on length parameter. Updated documentation. --- tests/hazmat/oath/test_hotp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3