Пример #1
0
def test_parse_campaign_label_path():
    expected = {
        "customer": "cuttlefish",
        "campaign_label": "mussel",
    }
    path = CampaignLabelServiceClient.campaign_label_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignLabelServiceClient.parse_campaign_label_path(path)
    assert expected == actual
Пример #2
0
def test_campaign_label_path():
    customer = "oyster"
    campaign_label = "nudibranch"
    expected = "customers/{customer}/campaignLabels/{campaign_label}".format(
        customer=customer,
        campaign_label=campaign_label,
    )
    actual = CampaignLabelServiceClient.campaign_label_path(
        customer, campaign_label)
    assert expected == actual