def test_parse_ad_group_bid_modifier_path(): expected = { "customer": "scallop", "ad_group_bid_modifier": "abalone", } 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
def test_ad_group_bid_modifier_path(): customer = "winkle" ad_group_bid_modifier = "nautilus" expected = "customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}".format(customer=customer, ad_group_bid_modifier=ad_group_bid_modifier, ) actual = ChangeStatusServiceClient.ad_group_bid_modifier_path(customer, ad_group_bid_modifier) assert expected == actual