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_block.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_block.py')
-rw-r--r-- | tests/hazmat/primitives/test_block.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/test_block.py b/tests/hazmat/primitives/test_block.py index f758ffaa..8ff00fd9 100644 --- a/tests/hazmat/primitives/test_block.py +++ b/tests/hazmat/primitives/test_block.py @@ -18,9 +18,7 @@ import binascii import pytest from cryptography import utils -from cryptography.exceptions import ( - UnsupportedAlgorithm, AlreadyFinalized, -) +from cryptography.exceptions import UnsupportedCipher, AlreadyFinalized from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.ciphers import ( Cipher, algorithms, modes @@ -116,10 +114,10 @@ class TestCipherContext(object): cipher = Cipher( DummyCipher(), mode, backend ) - with pytest.raises(UnsupportedAlgorithm): + with pytest.raises(UnsupportedCipher): cipher.encryptor() - with pytest.raises(UnsupportedAlgorithm): + with pytest.raises(UnsupportedCipher): cipher.decryptor() def test_incorrectly_padded(self, backend): |