Exemplo n.º 1
0
def test_parse_campaign_criterion_path():
    expected = {
        "customer": "cuttlefish",
        "campaign_criterion": "mussel",
    }
    path = CampaignCriterionServiceClient.campaign_criterion_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignCriterionServiceClient.parse_campaign_criterion_path(path)
    assert expected == actual
Exemplo n.º 2
0
def test_campaign_criterion_path():
    customer = "oyster"
    campaign_criterion = "nudibranch"
    expected = "customers/{customer}/campaignCriteria/{campaign_criterion}".format(customer=customer, campaign_criterion=campaign_criterion, )
    actual = CampaignCriterionServiceClient.campaign_criterion_path(customer, campaign_criterion)
    assert expected == actual