def test_parse_ad_group_criterion_path(): expected = { "customer_id": "mussel", "ad_group_id": "winkle", "criterion_id": "nautilus", } 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_id = "oyster" ad_group_id = "nudibranch" criterion_id = "cuttlefish" expected = "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}".format( customer_id=customer_id, ad_group_id=ad_group_id, criterion_id=criterion_id, ) actual = ChangeStatusServiceClient.ad_group_criterion_path( customer_id, ad_group_id, criterion_id) assert expected == actual