def testLat(self): for lat in range(-89, 89, 2): for zoom in range(0, 10): y = StaticMap._lat_to_y(lat, zoom) l = StaticMap._y_to_lat(y, zoom) self.assertAlmostEqual(lat, l, places=5)