Пример #1
0
def test_parse_campaign_asset_path():
    expected = {
        "customer": "scallop",
        "campaign_asset": "abalone",
    }
    path = CampaignAssetServiceClient.campaign_asset_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignAssetServiceClient.parse_campaign_asset_path(path)
    assert expected == actual
Пример #2
0
def test_campaign_asset_path():
    customer = "winkle"
    campaign_asset = "nautilus"
    expected = "customers/{customer}/campaignAssets/{campaign_asset}".format(customer=customer, campaign_asset=campaign_asset, )
    actual = CampaignAssetServiceClient.campaign_asset_path(customer, campaign_asset)
    assert expected == actual