(self, payload)
| 117 | jws.verify(token, "secret", ALGORITHMS.HS384) |
| 118 | |
| 119 | def test_wrong_key(self, payload): |
| 120 | token = jws.sign(payload, "secret", algorithm=ALGORITHMS.HS256) |
| 121 | with pytest.raises(JWSError): |
| 122 | jws.verify(token, "another", ALGORITHMS.HS256) |
| 123 | |
| 124 | def test_unsupported_alg(self, payload): |
| 125 | with pytest.raises(JWSError): |