def test_parse_asset_path():
    expected = {
        "customer": "whelk",
        "asset": "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 = "squid"
    asset = "clam"
    expected = "customers/{customer}/assets/{asset}".format(customer=customer, asset=asset, )
    actual = AssetServiceClient.asset_path(customer, asset)
    assert expected == actual