def test_same_dest(self): self.assertEqual(metric.distance_between(self.home, self.home), 0) self.assertEqual(metric.time_between(self.home, self.home), 0)
def test_distance(self): dist = metric.distance_between(self.home, self.davis) # 12 miles = 19312 meters self.assertTrue( 19000 < dist < 19550 )