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
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