def METHOD_NAME(auth_client, project, is_customer, expected):
    ProjectFactory.create_batch(4)
    if is_customer:
        CustomerAssigneeFactory.create(
            user=auth_client.user, is_customer=True, customer=project.customer
        )
    url = reverse("project-list")
    response = auth_client.get(url)
    assert response.status_code == status.HTTP_200_OK
    json = response.json()
    assert len(json["data"]) == expected