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 = ConversionUploadServiceClient.conversion_custom_variable_path(
        customer_id, conversion_custom_variable_id)
    assert expected == actual
def test_parse_conversion_custom_variable_path():
    expected = {
        "customer_id": "whelk",
        "conversion_custom_variable_id": "octopus",
    }
    path = ConversionUploadServiceClient.conversion_custom_variable_path(
        **expected)

    # Check that the path construction is reversible.
    actual = ConversionUploadServiceClient.parse_conversion_custom_variable_path(
        path)
    assert expected == actual