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")
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')