def test_parse_geographic_view_path():
    expected = {
        "customer_id": "octopus",
        "country_criterion_id": "oyster",
        "location_type": "nudibranch",
    }
    path = GeographicViewServiceClient.geographic_view_path(**expected)

    # Check that the path construction is reversible.
    actual = GeographicViewServiceClient.parse_geographic_view_path(path)
    assert expected == actual
def test_geographic_view_path():
    customer_id = "squid"
    country_criterion_id = "clam"
    location_type = "whelk"
    expected = "customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}".format(
        customer_id=customer_id,
        country_criterion_id=country_criterion_id,
        location_type=location_type,
    )
    actual = GeographicViewServiceClient.geographic_view_path(
        customer_id, country_criterion_id, location_type)
    assert expected == actual