def test_parse_asset_path():
    expected = {
        "customer_id": "whelk",
        "asset_id": "octopus",
    }
    path = AssetServiceClient.asset_path(**expected)

    # Check that the path construction is reversible.
    actual = AssetServiceClient.parse_asset_path(path)
    assert expected == actual
def test_asset_path():
    customer_id = "squid"
    asset_id = "clam"
    expected = "customers/{customer_id}/assets/{asset_id}".format(customer_id=customer_id, asset_id=asset_id, )
    actual = AssetServiceClient.asset_path(customer_id, asset_id)
    assert expected == actual