def test_parse_ad_group_label_path(): expected = { "customer": "cuttlefish", "ad_group_label": "mussel", } path = AdGroupLabelServiceClient.ad_group_label_path(**expected) # Check that the path construction is reversible. actual = AdGroupLabelServiceClient.parse_ad_group_label_path(path) assert expected == actual
def test_ad_group_label_path(): customer = "oyster" ad_group_label = "nudibranch" expected = "customers/{customer}/adGroupLabels/{ad_group_label}".format( customer=customer, ad_group_label=ad_group_label, ) actual = AdGroupLabelServiceClient.ad_group_label_path( customer, ad_group_label) assert expected == actual