Пример #1
0
def test_load_spomky_keys():
    kj = KeyJar()
    kj.import_jwks(JWKS_SPO, '')
    assert len(kj.get_issuer_keys('')) == 4
Пример #2
0
def test_load_unknown_keytype():
    kj = KeyJar()
    kj.import_jwks(JWK_UK, '')
    assert len(kj.get_issuer_keys('')) == 2
Пример #3
0
def test_load_missing_key_parameter():
    kj = KeyJar()
    kj.import_jwks(JWK_FP, '')
    assert len(kj.get_issuer_keys('')) == 0
Пример #4
0
def test_import_jwks():
    kj = KeyJar()
    kj.import_jwks(JWK1, '')
    assert len(kj.get_issuer_keys('')) == 4