async def METHOD_NAME(login, jp_base_url, bad_next):
    bad_next = bad_next.format(base_url=jp_base_url)
    resp = await login(bad_next)
    url = resp.headers["Location"]
    assert url == jp_base_url