This commit is contained in:
Leo Vasanko
2025-11-08 20:39:41 -06:00
parent a6faaf9f62
commit 67c2958384
+3 -3
View File
@@ -21,7 +21,7 @@ class TestEncryptorFinalization:
# Encrypt some data and finalize # Encrypt some data and finalize
encryptor.update(b"Hello, world!") encryptor.update(b"Hello, world!")
tag = encryptor.final() encryptor.final()
# Attempting to update after final should raise RuntimeError # Attempting to update after final should raise RuntimeError
with pytest.raises( with pytest.raises(
@@ -38,7 +38,7 @@ class TestEncryptorFinalization:
# Encrypt some data and finalize # Encrypt some data and finalize
encryptor.update(b"Hello, world!") encryptor.update(b"Hello, world!")
tag = encryptor.final() encryptor.final()
# Attempting to call final again should raise RuntimeError # Attempting to call final again should raise RuntimeError
with pytest.raises( with pytest.raises(
@@ -55,7 +55,7 @@ class TestEncryptorFinalization:
# Encrypt and finalize # Encrypt and finalize
encryptor.update(b"Test data") encryptor.update(b"Test data")
tag = encryptor.final() encryptor.final()
# Both operations should fail # Both operations should fail
with pytest.raises( with pytest.raises(