def evaluate_inputs(self, input_output_list):
     """Evaluates a list of inputs and outputs."""
     for (lon1, lat1, lon2, lat2, distance_actual) in input_output_list:
         distance_received = distance.haversine(lon1, lat1, lon2, lat2)
         self.assertCloseEnough(distance_actual, distance_received)
Beispiel #2
0
 def evaluate_inputs(self, input_output_list):
     """Evaluates a list of inputs and outputs."""
     for (lon1, lat1, lon2, lat2, distance_actual) in input_output_list:
         distance_received = distance.haversine(lon1, lat1, lon2, lat2)
         self.assertCloseEnough(distance_actual, distance_received)