def test_parse_campaign_path():
    expected = {
        "customer_id": "whelk",
        "campaign_id": "octopus",
    }
    path = CampaignBidModifierServiceClient.campaign_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignBidModifierServiceClient.parse_campaign_path(path)
    assert expected == actual
def test_campaign_path():
    customer_id = "squid"
    campaign_id = "clam"
    expected = "customers/{customer_id}/campaigns/{campaign_id}".format(
        customer_id=customer_id,
        campaign_id=campaign_id,
    )
    actual = CampaignBidModifierServiceClient.campaign_path(
        customer_id, campaign_id)
    assert expected == actual