def test_parse_conversion_action_path(): expected = { "customer": "cuttlefish", "conversion_action": "mussel", } path = CampaignServiceClient.conversion_action_path(**expected) # Check that the path construction is reversible. actual = CampaignServiceClient.parse_conversion_action_path(path) assert expected == actual
def test_conversion_action_path(): customer = "oyster" conversion_action = "nudibranch" expected = "customers/{customer}/conversionActions/{conversion_action}".format(customer=customer, conversion_action=conversion_action, ) actual = CampaignServiceClient.conversion_action_path(customer, conversion_action) assert expected == actual