def test_parse_geographic_view_path(): expected = { "customer": "whelk", "geographic_view": "octopus", } 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 = "squid" geographic_view = "clam" expected = "customers/{customer}/geographicViews/{geographic_view}".format( customer=customer, geographic_view=geographic_view, ) actual = GeographicViewServiceClient.geographic_view_path( customer, geographic_view) assert expected == actual