def test_parse_custom_interest_path():
    expected = {
        "customer_id": "whelk",
        "custom_interest_id": "octopus",
    }
    path = CustomInterestServiceClient.custom_interest_path(**expected)

    # Check that the path construction is reversible.
    actual = CustomInterestServiceClient.parse_custom_interest_path(path)
    assert expected == actual
def test_custom_interest_path():
    customer_id = "squid"
    custom_interest_id = "clam"
    expected = "customers/{customer_id}/customInterests/{custom_interest_id}".format(customer_id=customer_id, custom_interest_id=custom_interest_id, )
    actual = CustomInterestServiceClient.custom_interest_path(customer_id, custom_interest_id)
    assert expected == actual