Пример #1
0
 def test_get_miles(self):
     """Test getting the distance between given coordinates in miles."""
     miles = location_util.vincenty(COORDINATES_PARIS,
                                    COORDINATES_NEW_YORK,
                                    miles=True)
     assert round(miles, 2) == DISTANCE_MILES
Пример #2
0
 def test_get_miles(self):
     """Test getting the distance between given coordinates in miles."""
     miles = location_util.vincenty(COORDINATES_PARIS,
                                    COORDINATES_NEW_YORK,
                                    miles=True)
     assert round(miles, 2) == DISTANCE_MILES
Пример #3
0
 def test_get_kilometers(self):
     """Test getting the distance between given coordinates in km."""
     kilometers = location_util.vincenty(COORDINATES_PARIS,
                                         COORDINATES_NEW_YORK)
     assert round(kilometers, 2) == DISTANCE_KM
Пример #4
0
 def test_get_kilometers(self):
     """Test getting the distance between given coordinates in km."""
     kilometers = location_util.vincenty(COORDINATES_PARIS,
                                         COORDINATES_NEW_YORK)
     assert round(kilometers, 2) == DISTANCE_KM