def test_003_route_between_two_points(self):
     """Test correct args type"""
     self.assertEqual(
         route_between_two_points('lat1',
                                  'lon1',
                                  'lat2',
                                  'lon2',
                                  error='ignore'), {})
    def test_002_route_between_two_points(self):
        """Test the route between two points using the distance,
        when using a vehicle"""

        lat_init, lon_init, lat_dest, lon_dest = 40.4167, -3.7038, 40.4114, -3.7083
        result = route_between_two_points(lat_init=lat_init,
                                          lon_init=lon_init,
                                          lat_dest=lat_dest,
                                          lon_dest=lon_dest,
                                          vehicle=False)
        result_distance = result['distance']
        self.assertGreater(result_distance, 750)
        self.assertLess(result_distance, 900)
 def test_006_route_between_two_points(self):
     # Test coords not found raising exception
     with self.assertRaises(SystemExit):
         route_between_two_points(40.4167, -3.7038, 0, 0)
 def test_005_route_between_two_points(self):
     # Test coords not found
     self.assertEqual(
         route_between_two_points(40.4167, -3.7038, 0, 0, error='ignore'),
         {})
 def test_004_route_between_two_points(self):
     """Test correct args raising exception"""
     with self.assertRaises(SystemExit):
         route_between_two_points('lat1', 'lon1', 'lat2', 'lon2')