def test_parse_ad_group_label_path():
    expected = {
        "customer_id": "mussel",
        "ad_group_id": "winkle",
        "label_id": "nautilus",
    }
    path = AdGroupServiceClient.ad_group_label_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupServiceClient.parse_ad_group_label_path(path)
    assert expected == actual
def test_ad_group_label_path():
    customer_id = "oyster"
    ad_group_id = "nudibranch"
    label_id = "cuttlefish"
    expected = "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}".format(
        customer_id=customer_id,
        ad_group_id=ad_group_id,
        label_id=label_id,
    )
    actual = AdGroupServiceClient.ad_group_label_path(customer_id, ad_group_id,
                                                      label_id)
    assert expected == actual