def test_ad_group_bid_modifier_path(): customer_id = "scallop" ad_group_id = "abalone" criterion_id = "squid" expected = "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}".format(customer_id=customer_id, ad_group_id=ad_group_id, criterion_id=criterion_id, ) actual = ChangeStatusServiceClient.ad_group_bid_modifier_path(customer_id, ad_group_id, criterion_id) assert expected == actual
def test_parse_ad_group_bid_modifier_path(): expected = { "customer_id": "clam", "ad_group_id": "whelk", "criterion_id": "octopus", } path = ChangeStatusServiceClient.ad_group_bid_modifier_path(**expected) # Check that the path construction is reversible. actual = ChangeStatusServiceClient.parse_ad_group_bid_modifier_path(path) assert expected == actual