def METHOD_NAME(client, plan_factory, project_factory):
    project1 = project_factory()
    project2 = project_factory()
    project3 = project_factory()
    plan = plan_factory.create(projects=[project1, project2, project3])
    assert plan.projects.all().count() == 3
    organisation = plan.organisation
    plan_factory(organisation=organisation)
    assert Plan.objects.all().count() == 2
    initiator = organisation.initiators.first()
    client.login(username=initiator.email, password="password")
    url = reverse(
        "a4dashboard:plan-export", kwargs={"organisation_slug": organisation.slug}
    )
    response = client.get(url)
    assert response.status_code == 200
    assert (
        response["Content-Type"] == "application/vnd.openxmlformats-officedocument."
        "spreadsheetml.sheet"
    )