Example #1
0
def test_parse_campaign_budget_path():
    expected = {
        "customer_id": "scallop",
        "campaign_budget_id": "abalone",
    }
    path = CampaignServiceClient.campaign_budget_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignServiceClient.parse_campaign_budget_path(path)
    assert expected == actual
Example #2
0
def test_campaign_budget_path():
    customer_id = "winkle"
    campaign_budget_id = "nautilus"
    expected = "customers/{customer_id}/campaignBudgets/{campaign_budget_id}".format(
        customer_id=customer_id,
        campaign_budget_id=campaign_budget_id,
    )
    actual = CampaignServiceClient.campaign_budget_path(
        customer_id, campaign_budget_id)
    assert expected == actual