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

Method testHMAC384

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

Source from the content-addressed store, hash-verified

104 assert jws.verify(token, "secret", ALGORITHMS.HS256) == payload
105
106 def testHMAC384(self, payload):
107 token = jws.sign(payload, "secret", algorithm=ALGORITHMS.HS384)
108 assert jws.verify(token, "secret", ALGORITHMS.HS384) == payload
109
110 def testHMAC512(self, payload):
111 token = jws.sign(payload, "secret", algorithm=ALGORITHMS.HS512)

Callers

nothing calls this directly

Calls 2

signMethod · 0.45
verifyMethod · 0.45

Tested by

no test coverage detected