def test_localhost_url():
    issuer = KeyIssuer(httpc_params={"verify": True})
    url = "http://localhost/jwks.json"
    with responses.RequestsMock() as rsps:
        rsps.add(method="GET", url=url, json=JWK2, status=200)
        issuer.add_url(url)

    kb = issuer.find(url)
    assert len(kb) == 1
    assert kb[0].httpc_params == {"verify": False}
def test_missing_url():
    issuer = KeyIssuer()
    with pytest.raises(KeyError):
        issuer.add_url("")