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)
Esempio 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')
Esempio 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)
Esempio n. 6
0
 def test_the_distance_of_the_route_A_D_C(self):
     self.assertEqual(distance(self.graph, ['A', 'D', 'C']), 13)