def METHOD_NAME(
    for_project,
    for_master_api_key,
    expected_count,
    environment,
    environment_two,
    organisation_two_project_one_environment_one,
    admin_master_api_key,
    master_api_key,
):
    # When
    for permission in EnvironmentPermissionModel.objects.all().values_list(
        "key", flat=True
    ):
        # Then
        assert (
            get_permitted_environments_for_master_api_key(
                for_master_api_key, for_project, permission
            ).count()
            == expected_count
        )