예제 #1
0
파일: tests.py 프로젝트: pbabik/staticmap
 def testLon(self):
     for lon in range(-180, 180, 20):
         for zoom in range(0, 10):
             x = StaticMap._lon_to_x(lon, zoom)
             l = StaticMap._x_to_lon(x, zoom)
             self.assertAlmostEqual(lon, l, places=5)