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

Method test_unsupported_alg

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

Source from the content-addressed store, hash-verified

122 jws.verify(token, "another", ALGORITHMS.HS256)
123
124 def test_unsupported_alg(self, payload):
125 with pytest.raises(JWSError):
126 jws.sign(payload, "secret", algorithm="SOMETHING")
127
128 def test_add_headers(self, payload):
129 additional_headers = {"test": "header"}

Callers

nothing calls this directly

Calls 1

signMethod · 0.45

Tested by

no test coverage detected