def test_the_distance_of_the_route_A_E_D(self):
     self.assertEqual(distance(self.graph, ['A', 'E', 'D']), 'NO SUCH ROUTE')
 def test_the_distance_of_the_route_A_E_B_C_D(self):
     self.assertEqual(distance(self.graph, ['A', 'E', 'B', 'C', 'D']), 22)
 def test_the_distance_of_the_route_A_D_C(self):
     self.assertEqual(distance(self.graph, ['A', 'D', 'C']), 13)
Exemple #4
0
 def test_the_distance_of_the_route_A_E_D(self):
     self.assertEqual(distance(self.graph, ['A', 'E', 'D']),
                      'NO SUCH ROUTE')
Exemple #5
0
 def test_the_distance_of_the_route_A_E_B_C_D(self):
     self.assertEqual(distance(self.graph, ['A', 'E', 'B', 'C', 'D']), 22)
Exemple #6
0
 def test_the_distance_of_the_route_A_D_C(self):
     self.assertEqual(distance(self.graph, ['A', 'D', 'C']), 13)