diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-06 14:22:56 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-03-06 14:22:56 -0800 |
commit | c6a6f317fca2aa368943870ecc3854bb53399f06 (patch) | |
tree | 6c975bf178f47d504da5edbce3233ca54a89d82d /tests/hazmat/primitives/test_pbkdf2hmac.py | |
parent | 8b347932fb3612e622d07643af62ed939976b9cb (diff) | |
download | cryptography-c6a6f317fca2aa368943870ecc3854bb53399f06.tar.gz cryptography-c6a6f317fca2aa368943870ecc3854bb53399f06.tar.bz2 cryptography-c6a6f317fca2aa368943870ecc3854bb53399f06.zip |
Convert stuff
Diffstat (limited to 'tests/hazmat/primitives/test_pbkdf2hmac.py')
-rw-r--r-- | tests/hazmat/primitives/test_pbkdf2hmac.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_pbkdf2hmac.py b/tests/hazmat/primitives/test_pbkdf2hmac.py index 6ad225a8..f895935b 100644 --- a/tests/hazmat/primitives/test_pbkdf2hmac.py +++ b/tests/hazmat/primitives/test_pbkdf2hmac.py @@ -18,7 +18,7 @@ import six from cryptography import utils from cryptography.exceptions import ( - InvalidKey, UnsupportedAlgorithm, AlreadyFinalized + InvalidKey, UnsupportedHash, AlreadyFinalized ) from cryptography.hazmat.primitives import hashes, interfaces from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC @@ -48,7 +48,7 @@ class TestPBKDF2HMAC(object): kdf.verify(b"password", key) def test_unsupported_algorithm(self): - with pytest.raises(UnsupportedAlgorithm): + with pytest.raises(UnsupportedHash): PBKDF2HMAC(DummyHash(), 20, b"salt", 10, default_backend()) def test_invalid_key(self): |