(self, message, backend)
| 140 | |
| 141 | @pytest.mark.parametrize("message", [b"", b"Abc!", b"\x00\xff\x00\x80"]) |
| 142 | def test_roundtrips(self, message, backend): |
| 143 | f = Fernet(Fernet.generate_key(), backend=backend) |
| 144 | assert f.decrypt(f.encrypt(message)) == message |
| 145 | |
| 146 | @pytest.mark.parametrize("key", [base64.urlsafe_b64encode(b"abc"), b"abc"]) |
| 147 | def test_bad_key(self, backend, key): |
nothing calls this directly
no test coverage detected