def METHOD_NAME(self) -> None:
    organisation = Organisation.objects.create(name="Test org")
    self.project = Project.objects.create(
        name="Test project", organisation=organisation
    )
    self.segment = Segment.objects.create(name="Test segment", project=self.project)
    self.project_admin = FFAdminUser.objects.create(email="project_admin@test.com")
    mock_view.kwargs = {"project_pk": self.project.id}
    mock_request.query_params = {}
    self.project_user = FFAdminUser.objects.create(email="user@test.com")
    user_project_permissions = UserProjectPermission.objects.create(
        project=self.project, user=self.project_user
    )
    user_project_permissions.add_permission(VIEW_PROJECT)