def test_parse_ad_group_ad_label_path(): expected = { "customer": "cuttlefish", "ad_group_ad_label": "mussel", } path = AdGroupAdLabelServiceClient.ad_group_ad_label_path(**expected) # Check that the path construction is reversible. actual = AdGroupAdLabelServiceClient.parse_ad_group_ad_label_path(path) assert expected == actual
def test_ad_group_ad_label_path(): customer = "oyster" ad_group_ad_label = "nudibranch" expected = "customers/{customer}/adGroupAdLabels/{ad_group_ad_label}".format( customer=customer, ad_group_ad_label=ad_group_ad_label, ) actual = AdGroupAdLabelServiceClient.ad_group_ad_label_path( customer, ad_group_ad_label) assert expected == actual