()
| 22 | |
| 23 | |
| 24 | def test_init_algorithms(): |
| 25 | _jwt = JsonWebToken(["RS256"]) |
| 26 | with pytest.raises(UnsupportedAlgorithmError): |
| 27 | _jwt.encode({"alg": "HS256"}, {}, "k") |
| 28 | |
| 29 | _jwt = JsonWebToken("RS256") |
| 30 | with pytest.raises(UnsupportedAlgorithmError): |
| 31 | _jwt.encode({"alg": "HS256"}, {}, "k") |
| 32 | |
| 33 | |
| 34 | @pytest.mark.parametrize("prefix", ["", "\n", " \t\r\n", "# public key\n", "\ufeff"]) |
nothing calls this directly
no test coverage detected