diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-11-21 11:21:35 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-11-29 17:19:45 -0600 |
commit | cc9ec987e82d1c4e2d42e6ef41664a090425287c (patch) | |
tree | 3385213e2e6606a044ad9f7cb258650110fab6a3 /tests | |
parent | a5e1081098be6734f8abe31ce0b84c72490f4cb3 (diff) | |
download | cryptography-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')
-rw-r--r-- | tests/hazmat/primitives/utils.py | 4 |
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): |