def test_parse_landing_page_view_path():
    expected = {
        "customer_id": "whelk",
        "unexpanded_final_url_fingerprint": "octopus",
    }
    path = LandingPageViewServiceClient.landing_page_view_path(**expected)

    # Check that the path construction is reversible.
    actual = LandingPageViewServiceClient.parse_landing_page_view_path(path)
    assert expected == actual
def test_landing_page_view_path():
    customer_id = "squid"
    unexpanded_final_url_fingerprint = "clam"
    expected = "customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}".format(
        customer_id=customer_id,
        unexpanded_final_url_fingerprint=unexpanded_final_url_fingerprint,
    )
    actual = LandingPageViewServiceClient.landing_page_view_path(
        customer_id, unexpanded_final_url_fingerprint)
    assert expected == actual