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

Method test_interface

tests/test_jwk.py:35–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class TestJWK:
35 def test_interface(self):
36 key = jwk.Key("key", "ALG")
37
38 with pytest.raises(NotImplementedError):
39 key.sign("")
40
41 with pytest.raises(NotImplementedError):
42 key.verify("", "")
43
44 @pytest.mark.skipif(RSAKey is None, reason="RSA is not available")
45 def test_invalid_hash_alg(self):

Callers

nothing calls this directly

Calls 2

signMethod · 0.95
verifyMethod · 0.95

Tested by

no test coverage detected