MCPcopy
hub / github.com/authlib/authlib / test_jwk_key_set

Function test_jwk_key_set

tests/jose/test_jwk.py:308–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306
307
308def test_jwk_key_set():
309 key = RSAKey.generate_key(is_private=True)
310 key_set = KeySet([key])
311 obj = key_set.as_dict()["keys"][0]
312 assert "kid" in obj
313 assert key_set.as_json()[0] == "{"

Callers

nothing calls this directly

Calls 4

as_dictMethod · 0.95
as_jsonMethod · 0.95
KeySetClass · 0.90
generate_keyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…