Cleanup
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user