def METHOD_NAME(self, project):
    config = f"""
        projects_and_groups:
          {project.path_with_namespace}:
            badges:
              pipeline-status:
                name: "Project Badge"
                link_url: "https://gitlab.example.com/%{{project_path}}/-/commits/%{{default_branch}}/foo"
                image_url: "https://gitlab.example.com/%{{project_path}}/badges/%{{default_branch}}/pipeline.svg"
        """
    run_gitlabform(config, project)
    badges = get_project_badges(project)
    assert len(badges) == 1
    assert badges[0].name == "Project Badge"
    config = f"""
        projects_and_groups:
          {project.path_with_namespace}:
            badges:
              pipeline-status:
                name: "Project Badge"
                delete: true
        """
    run_gitlabform(config, project)
    badges = get_project_badges(project)
    assert len(badges) == 0