(self, backend)
| 166 | ) |
| 167 | class TestMultiFernet: |
| 168 | def test_encrypt(self, backend): |
| 169 | f1 = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) |
| 170 | f2 = Fernet(base64.urlsafe_b64encode(b"\x01" * 32), backend=backend) |
| 171 | f = MultiFernet([f1, f2]) |
| 172 | |
| 173 | assert f1.decrypt(f.encrypt(b"abc")) == b"abc" |
| 174 | |
| 175 | def test_decrypt(self, backend): |
| 176 | f1 = Fernet(base64.urlsafe_b64encode(b"\x00" * 32), backend=backend) |
nothing calls this directly
no test coverage detected