def METHOD_NAME(client, idea_factory):
    idea = idea_factory()
    url = reverse(
        "meinberlin_ideas:idea-delete",
        kwargs={"pk": idea.pk, "year": idea.created.year},
    )
    response = client.get(url)
    assert response.status_code == 302
    assert redirect_target(response) == "account_login"