def test_tile_to_lat_lon_two(self): z = 0 x = y = 1 lat, lon = ScaledWorldMercator.tile_to_lat_lon(z, x, y) lat_result = Geodetic.truncate(lat) assert float(lat_result) == 85.0840590 and \ lon == 180.0
def test_get_coord_four(self): geod = Geodetic() z = 21 x = 599188 y = 749975 lon, lat = geod.get_coord(z, x, y) lon = geod.truncate(lon) lat = geod.truncate(lat) assert float(lon) == -77.1425628 and \ float(lat) == 38.7417411
def test_get_coord_three(self): geod = Geodetic() z = 21 x = 599187 y = 749974 lon, lat = geod.get_coord(z, x, y) lon = geod.truncate(lon) lat = geod.truncate(lat) assert float(lon) == -77.1427345 and \ float(lat) == 38.7415695
def test_truncate(self): x = 12.34567890 result = Geodetic.truncate(x) assert float(result) == 12.3456789