def test_click_view_path():
    customer_id = "squid"
    date = "clam"
    gclid = "whelk"
    expected = "customers/{customer_id}/clickViews/{date}~{gclid}".format(customer_id=customer_id, date=date, gclid=gclid, )
    actual = ClickViewServiceClient.click_view_path(customer_id, date, gclid)
    assert expected == actual
def test_parse_click_view_path():
    expected = {
        "customer_id": "octopus",
        "date": "oyster",
        "gclid": "nudibranch",
    }
    path = ClickViewServiceClient.click_view_path(**expected)

    # Check that the path construction is reversible.
    actual = ClickViewServiceClient.parse_click_view_path(path)
    assert expected == actual