def test_parse_campaign_label_path():
    expected = {
        "customer_id": "octopus",
        "campaign_id": "oyster",
        "label_id": "nudibranch",
    }
    path = CampaignServiceClient.campaign_label_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignServiceClient.parse_campaign_label_path(path)
    assert expected == actual
def test_campaign_label_path():
    customer_id = "squid"
    campaign_id = "clam"
    label_id = "whelk"
    expected = "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}".format(
        customer_id=customer_id,
        campaign_id=campaign_id,
        label_id=label_id,
    )
    actual = CampaignServiceClient.campaign_label_path(customer_id,
                                                       campaign_id, label_id)
    assert expected == actual