def test_load_spomky_keys(): kj = KeyJar() kj.import_jwks(JWKS_SPO, '') assert len(kj.get_issuer_keys('')) == 4
def test_load_unknown_keytype(): kj = KeyJar() kj.import_jwks(JWK_UK, '') assert len(kj.get_issuer_keys('')) == 2
def test_load_missing_key_parameter(): kj = KeyJar() kj.import_jwks(JWK_FP, '') assert len(kj.get_issuer_keys('')) == 0
def test_import_jwks(): kj = KeyJar() kj.import_jwks(JWK1, '') assert len(kj.get_issuer_keys('')) == 4