Пример #1
0
def test_alg_keys_no_keys():
    jws = JWS(kid="abc1", alg="RS256")
    with pytest.raises(NoSuitableSigningKeys):
        jws.alg_keys(None, "sig")

    jws = JWS(alg="RS256")
    with pytest.raises(NoSuitableSigningKeys):
        jws.alg_keys(None, "sig")
Пример #2
0
def test_alg_keys_no_keys():
    jws = JWS(kid='abc1', alg='RS256')
    with pytest.raises(NoSuitableSigningKeys):
        jws.alg_keys(None, 'sig')

    jws = JWS(alg='RS256')
    with pytest.raises(NoSuitableSigningKeys):
        jws.alg_keys(None, 'sig')