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)
Ejemplo n.º 4
0
 def test_the_distance_of_the_route_A_E_D(self):
     self.assertEqual(distance(self.graph, ['A', 'E', 'D']),
                      'NO SUCH ROUTE')
Ejemplo n.º 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)
Ejemplo n.º 6
0
 def test_the_distance_of_the_route_A_D_C(self):
     self.assertEqual(distance(self.graph, ['A', 'D', 'C']), 13)