diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:43:28 -0800 | 
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-01 09:43:28 -0800 | 
| commit | ae62fd3a479bd0caeffec97741318f2c6a15a234 (patch) | |
| tree | 42a3355e3ec3f229ace23807867e68859ead1d9e | |
| parent | 224ea6ca7533928814d6019a7d8e3e7ce016d601 (diff) | |
| download | cryptography-ae62fd3a479bd0caeffec97741318f2c6a15a234.tar.gz cryptography-ae62fd3a479bd0caeffec97741318f2c6a15a234.tar.bz2 cryptography-ae62fd3a479bd0caeffec97741318f2c6a15a234.zip  | |
Update tests as well
| -rw-r--r-- | tests/hazmat/primitives/twofactor/test_hotp.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/twofactor/test_hotp.py b/tests/hazmat/primitives/twofactor/test_hotp.py index 7c584271..fc74ee7f 100644 --- a/tests/hazmat/primitives/twofactor/test_hotp.py +++ b/tests/hazmat/primitives/twofactor/test_hotp.py @@ -15,7 +15,7 @@ import os  import pytest -from cryptography.exceptions import InvalidToken, UnsupportedAlgorithm +from cryptography.exceptions import InvalidToken  from cryptography.hazmat.primitives.twofactor.hotp import HOTP  from cryptography.hazmat.primitives import hashes  from tests.utils import load_vectors_from_file, load_nist_vectors @@ -46,7 +46,7 @@ class TestHOTP(object):      def test_invalid_algorithm(self, backend):          secret = os.urandom(16) -        with pytest.raises(UnsupportedAlgorithm): +        with pytest.raises(ValueError):              HOTP(secret, 6, MD5(), backend)      @pytest.mark.parametrize("params", vectors)  | 
