def test_adds_meters_to_longitude(self):
     self.assertAlmostEqual(add_meters_to_longitude(1.0, 1.0, 1000),
                            1.0166573581, 9)
 def test_returns_min_lon(self):
     self.assertEqual(add_meters_to_longitude(1.0, 1.0, -(10 ** 10)),
                      constants.MIN_LON)
 def test_returns_max_lon(self):
     self.assertEqual(add_meters_to_longitude(1.0, 1.0, 10 ** 10),
                      constants.MAX_LON)
Beispiel #4
0
 def max_lon(self):
     return geocalc.add_meters_to_longitude(self.lat, self.lon, self.range)
Beispiel #5
0
 def max_lon(self):
     return geocalc.add_meters_to_longitude(self.lat, self.lon, self.range)
Beispiel #6
0
 def test_adds_meters_to_longitude(self):
     self.assertAlmostEqual(add_meters_to_longitude(1.0, 1.0, 1000),
                            1.0166573581, 9)
Beispiel #7
0
 def test_returns_max_lon(self):
     self.assertEqual(add_meters_to_longitude(1.0, 1.0, 10**10),
                      constants.MAX_LON)
Beispiel #8
0
 def test_returns_min_lon(self):
     self.assertEqual(add_meters_to_longitude(1.0, 1.0, -(10**10)),
                      constants.MIN_LON)