def test_parse_conversion_action_path():
    expected = {
        "customer_id": "squid",
        "conversion_action_id": "clam",
    }
    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 = "scallop"
    conversion_action_id = "abalone"
    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