def test_parse_conversion_custom_variable_path(): expected = { "customer_id": "whelk", "conversion_custom_variable_id": "octopus", } path = ConversionCustomVariableServiceClient.conversion_custom_variable_path(**expected) # Check that the path construction is reversible. actual = ConversionCustomVariableServiceClient.parse_conversion_custom_variable_path(path) assert expected == actual
def test_conversion_custom_variable_path(): customer_id = "squid" conversion_custom_variable_id = "clam" expected = "customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}".format(customer_id=customer_id, conversion_custom_variable_id=conversion_custom_variable_id, ) actual = ConversionCustomVariableServiceClient.conversion_custom_variable_path(customer_id, conversion_custom_variable_id) assert expected == actual