def test_parse_conversion_action_path():
    expected = {
        "customer_id": "winkle",
        "conversion_action_id": "nautilus",
    }
    path = CampaignServiceClient.conversion_action_path(**expected)

    # Check that the path construction is reversible.
    actual = CampaignServiceClient.parse_conversion_action_path(path)
    assert expected == actual
def test_conversion_action_path():
    customer_id = "cuttlefish"
    conversion_action_id = "mussel"
    expected = "customers/{customer_id}/conversionActions/{conversion_action_id}".format(
        customer_id=customer_id,
        conversion_action_id=conversion_action_id,
    )
    actual = CampaignServiceClient.conversion_action_path(
        customer_id, conversion_action_id)
    assert expected == actual