def test_march_5(self):
     env = Environment("map_init.txt", "population_init.txt")
     try:
         env.march_troops(GamePlayId.P1, 1, 5, 1)
         self.fail()
     except Exception as error:
         self.assertEqual(
             str(error), "Can't march no route from ( " + str(1) +
             " ) to ( " + str(5) + " )")
 def test_march_4(self):
     env = Environment("map_init.txt", "population_init.txt")
     try:
         env.march_troops(GamePlayId.P1, 1, 3, 13)
         self.fail()
     except Exception as error:
         self.assertEqual(
             str(error), "Not enough troops to march from ( " + str(1) +
             " ) to ( " + str(3) + " ) troops are in country are " + str(7))
 def test_march_3(self):
     env = Environment("map_init.txt", "population_init.txt")
     try:
         env.march_troops(GamePlayId.P1, 1, 4, 1)
         self.fail()
     except Exception as error:
         self.assertEqual(
             str(error),
             "Can't march troops to unowned country : country owner (" +
             str(GamePlayId.P2) + ") ," + "player (" + str(GamePlayId.P1) +
             ")")
 def test_march_1(self):
     env = Environment("map_init.txt", "population_init.txt")
     env.march_troops(GamePlayId.P1, 1, 3, 1)
     self.assertEqual(env.country_list[0].troops_count, 6)
     self.assertEqual(env.country_list[2].troops_count, 26)