def METHOD_NAME(
    client, phase_factory, user, category_factory
):
    phase = phase_factory(phase_content=phases.IssuePhase())
    module = phase.module
    category = category_factory(module=module)
    url = reverse(
        "a4_candy_ideas:idea-create",
        kwargs={
            "organisation_slug": module.project.organisation.slug,
            "module_slug": module.slug,
        },
    )
    with freeze_phase(phase):
        count = models.Idea.objects.all().count()
        assert count == 0
        client.login(username=user.email, password="password")
        response = client.get(url)
        assert_template_response(response, "a4_candy_ideas/idea_create_form.html")
        assert response.status_code == 200
        idea = {
            "name": "Idea",
            "description": "description",
            "category": category.pk,
            "organisation_terms_of_use": True,
        }
        response = client.post(url, idea)
        assert response.status_code == 302
        assert redirect_target(response) == "idea-detail"
        count = models.Idea.objects.all().count()
        assert count == 1