diff options
Diffstat (limited to 'tests/hazmat/oath')
-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): |