MCPcopy Create free account
hub / github.com/mpdavis/python-jose / test_invalid_key

Method test_invalid_key

tests/test_jws.py:74–76  ·  view source on GitHub ↗
(self, payload)

Source from the content-addressed store, hash-verified

72 jws.verify(token, "secret", ["HS256"])
73
74 def test_invalid_key(self, payload):
75 with pytest.raises(JWSError):
76 jws.sign(payload, "secret", algorithm="RS256")
77
78 @pytest.mark.parametrize(
79 "key",

Callers

nothing calls this directly

Calls 1

signMethod · 0.45

Tested by

no test coverage detected