def test_parse_ad_group_criterion_path(): expected = { "customer": "cuttlefish", "ad_group_criterion": "mussel", } path = AdGroupCriterionServiceClient.ad_group_criterion_path(**expected) # Check that the path construction is reversible. actual = AdGroupCriterionServiceClient.parse_ad_group_criterion_path(path) assert expected == actual
def test_ad_group_criterion_path(): customer = "oyster" ad_group_criterion = "nudibranch" expected = "customers/{customer}/adGroupCriteria/{ad_group_criterion}".format(customer=customer, ad_group_criterion=ad_group_criterion, ) actual = AdGroupCriterionServiceClient.ad_group_criterion_path(customer, ad_group_criterion) assert expected == actual