aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-21 11:21:35 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-11-29 17:19:45 -0600
commitcc9ec987e82d1c4e2d42e6ef41664a090425287c (patch)
tree3385213e2e6606a044ad9f7cb258650110fab6a3 /tests/hazmat/primitives/utils.py
parenta5e1081098be6734f8abe31ce0b84c72490f4cb3 (diff)
downloadcryptography-cc9ec987e82d1c4e2d42e6ef41664a090425287c.tar.gz
cryptography-cc9ec987e82d1c4e2d42e6ef41664a090425287c.tar.bz2
cryptography-cc9ec987e82d1c4e2d42e6ef41664a090425287c.zip
rename NotFinalized exception to NotYetFinalized because alex is right
...it does read better that way
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 839ff822..98455556 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -7,7 +7,7 @@ from cryptography.hazmat.bindings import _ALL_BACKENDS
from cryptography.hazmat.primitives import hashes, hmac
from cryptography.hazmat.primitives.ciphers import Cipher
from cryptography.exceptions import (
- AlreadyFinalized, NotFinalized,
+ AlreadyFinalized, NotYetFinalized,
)
from ...utils import load_vectors_from_file
@@ -333,7 +333,7 @@ def aead_use_after_finalize_test(backend, cipher_factory, mode_factory,
)
encryptor = cipher.encryptor()
encryptor.update(b"a" * 16)
- with pytest.raises(NotFinalized):
+ with pytest.raises(NotYetFinalized):
encryptor.tag
encryptor.finalize()
with pytest.raises(AlreadyFinalized):