def METHOD_NAME(client, draft_json, minimal_record, headers):
    """Tests the links for endpoints that return a draft."""
    created_draft_links = draft_json["links"]
    pid_value = draft_json["id"]
    response = client.get(f"/records/{pid_value}/draft", headers=headers)
    read_draft_links = response.json["links"]
    expected_links = {
        "self": f"https://127.0.0.1:5000/api/records/{pid_value}/draft",
        "review": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/review",  # noqa
        "self_html": f"https://127.0.0.1:5000/uploads/{pid_value}",
        "publish": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/actions/publish",  # noqa
        "record": f"https://127.0.0.1:5000/api/records/{pid_value}",
        "record_html": f"https://127.0.0.1:5000/records/{pid_value}",
        "versions": f"https://127.0.0.1:5000/api/records/{pid_value}/versions",
        "access_links": f"https://127.0.0.1:5000/api/records/{pid_value}/access/links",  # noqa
        "files": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/files",
        "media_files": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/media-files",
        "archive": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/files-archive",  # noqa
        "archive_media": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/media-files-archive",  # noqa
        "reserve_doi": f"https://127.0.0.1:5000/api/records/{pid_value}/draft/pids/doi",  # noqa
        "self_iiif_manifest": f"https://127.0.0.1:5000/api/iiif/draft:{pid_value}/manifest",  # noqa
        "self_iiif_sequence": f"https://127.0.0.1:5000/api/iiif/draft:{pid_value}/sequence/default",  # noqa
        "communities": f"https://127.0.0.1:5000/api/records/{pid_value}/communities",  # noqa
        "communities-suggestions": f"https://127.0.0.1:5000/api/records/{pid_value}/communities-suggestions",  # noqa
        "requests": f"https://127.0.0.1:5000/api/records/{pid_value}/requests",  # noqa
        "access": f"https://127.0.0.1:5000/api/records/{pid_value}/access",
        "access_request": f"https://127.0.0.1:5000/api/records/{pid_value}/access/request",
        "access_users": f"https://127.0.0.1:5000/api/records/{pid_value}/access/users",
    }
    assert expected_links == created_draft_links == read_draft_links