rename NotFinalized exception to NotYetFinalized because alex is right
...it does read better that way
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index 839ff82..9845555 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -7,7 +7,7 @@
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 @@
)
encryptor = cipher.encryptor()
encryptor.update(b"a" * 16)
- with pytest.raises(NotFinalized):
+ with pytest.raises(NotYetFinalized):
encryptor.tag
encryptor.finalize()
with pytest.raises(AlreadyFinalized):