def METHOD_NAME(client, phase_factory, idea_factory):
    phase, module, project, idea = setup_phase(
        phase_factory, idea_factory, phases.IssuePhase
    )
    url = reverse(
        "meinberlin_ideas:idea-delete",
        kwargs={"pk": idea.pk, "year": idea.created.year},
    )
    with freeze_phase(phase):
        count = models.Idea.objects.all().count()
        assert count == 1
        client.login(username=idea.creator.email, password="password")
        response = client.get(url)
        assert_template_response(response, "meinberlin_ideas/idea_confirm_delete.html")
        response = client.post(url)
        assert redirect_target(response) == "project-detail"
        assert response.status_code == 302
        count = models.Idea.objects.all().count()
        assert count == 0