()
| 26 | |
| 27 | |
| 28 | def test_invalid_alg(): |
| 29 | jws = JsonWebSignature() |
| 30 | with pytest.raises(errors.UnsupportedAlgorithmError): |
| 31 | jws.deserialize( |
| 32 | "eyJhbGciOiJzIn0.YQ.YQ", |
| 33 | "k", |
| 34 | ) |
| 35 | with pytest.raises(errors.MissingAlgorithmError): |
| 36 | jws.serialize({}, "", "k") |
| 37 | with pytest.raises(errors.UnsupportedAlgorithmError): |
| 38 | jws.serialize({"alg": "s"}, "", "k") |
| 39 | |
| 40 | |
| 41 | def test_bad_signature(): |
nothing calls this directly
no test coverage detected