diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 16:07:35 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 16:07:35 -0700 |
commit | 6b9770b159b920cccddc8e3c3d1b0fb0287a0c15 (patch) | |
tree | 26b8c65fcd1910643dba85ba0b370079213b3b66 /tests | |
parent | 3d5041cda29f8201418a4c2d340059f68c7bb41d (diff) | |
download | cryptography-6b9770b159b920cccddc8e3c3d1b0fb0287a0c15.tar.gz cryptography-6b9770b159b920cccddc8e3c3d1b0fb0287a0c15.tar.bz2 cryptography-6b9770b159b920cccddc8e3c3d1b0fb0287a0c15.zip |
write more readably
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_fernet.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_fernet.py b/tests/test_fernet.py index a42011a6..baae36d2 100644 --- a/tests/test_fernet.py +++ b/tests/test_fernet.py @@ -65,6 +65,4 @@ class TestFernet(object): @pytest.mark.parametrize("message", [b"", b"Abc!", b"\x00\xFF\x00\x80"]) def test_roundtrips(self, message): f = Fernet(b"\x00" * 32) - ciphertext = f.encrypt(message) - plaintext = f.decrypt(ciphertext) - assert plaintext == message + assert f.decrypt(f.encrypt(message)) == message |