def test_parse_campaign_label_path():
    expected = {
        "customer_id": "mussel",
        "campaign_id": "winkle",
        "label_id": "nautilus",
    }
    path = CampaignLabelServiceClient.campaign_label_path(**expected)

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