def METHOD_NAME(client, idea_factory):
    idea = idea_factory()
    moderator = idea.module.project.moderators.first()
    client.login(username=moderator.email, password="password")
    url = reverse(
        "a4_candy_ideas:idea-delete",
        kwargs={
            "organisation_slug": idea.project.organisation.slug,
            "pk": idea.pk,
            "year": idea.created.year,
        },
    )
    response = client.get(url)
    assert response.status_code == 200