def test_parse_ad_group_criterion_path(): expected = { "customer": "whelk", "ad_group_criterion": "octopus", } path = ChangeStatusServiceClient.ad_group_criterion_path(**expected) # Check that the path construction is reversible. actual = ChangeStatusServiceClient.parse_ad_group_criterion_path(path) assert expected == actual
def test_ad_group_criterion_path(): customer = "squid" ad_group_criterion = "clam" expected = "customers/{customer}/adGroupCriteria/{ad_group_criterion}".format(customer=customer, ad_group_criterion=ad_group_criterion, ) actual = ChangeStatusServiceClient.ad_group_criterion_path(customer, ad_group_criterion) assert expected == actual