def test_ad_group_criterion_label_path():
    customer = "oyster"
    ad_group_criterion_label = "nudibranch"
    expected = "customers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}".format(
        customer=customer,
        ad_group_criterion_label=ad_group_criterion_label,
    )
    actual = AdGroupCriterionLabelServiceClient.ad_group_criterion_label_path(
        customer, ad_group_criterion_label)
    assert expected == actual
def test_parse_ad_group_criterion_label_path():
    expected = {
        "customer": "cuttlefish",
        "ad_group_criterion_label": "mussel",
    }
    path = AdGroupCriterionLabelServiceClient.ad_group_criterion_label_path(
        **expected)

    # Check that the path construction is reversible.
    actual = AdGroupCriterionLabelServiceClient.parse_ad_group_criterion_label_path(
        path)
    assert expected == actual