示例#1
0
def test_parse_asset_path():
    expected = {
        "customer_id": "cuttlefish",
        "asset_id": "mussel",
    }
    path = ExtensionFeedItemServiceClient.asset_path(**expected)

    # Check that the path construction is reversible.
    actual = ExtensionFeedItemServiceClient.parse_asset_path(path)
    assert expected == actual
示例#2
0
def test_asset_path():
    customer_id = "oyster"
    asset_id = "nudibranch"
    expected = "customers/{customer_id}/assets/{asset_id}".format(customer_id=customer_id, asset_id=asset_id, )
    actual = ExtensionFeedItemServiceClient.asset_path(customer_id, asset_id)
    assert expected == actual