Esempio n. 1
0
def test_asset_path():
    customer = "winkle"
    asset = "nautilus"
    expected = "customers/{customer}/assets/{asset}".format(
        customer=customer,
        asset=asset,
    )
    actual = AdGroupAdAssetViewServiceClient.asset_path(customer, asset)
    assert expected == actual
Esempio n. 2
0
def test_parse_asset_path():
    expected = {
        "customer": "scallop",
        "asset": "abalone",
    }
    path = AdGroupAdAssetViewServiceClient.asset_path(**expected)

    # Check that the path construction is reversible.
    actual = AdGroupAdAssetViewServiceClient.parse_asset_path(path)
    assert expected == actual