def test_deploy_1(self):
     env = Environment("map_init.txt", "population_init.txt")
     env.reserve_1 = 1
     env.deploy_reserve_troops(GamePlayId.P1, 1)
     try:
         env.deploy_reserve_troops(GamePlayId.NONE, 1)
         self.fail()
     except Exception as error:
         self.assertEqual(
             str(error),
             "Can't deploy troops to unowned country : country owner (" +
             str(GamePlayId.P1) + ") ," + "player " + str(GamePlayId.NONE) +
             ")")
 def test_deploy_2(self):
     env = Environment("map_init.txt", "population_init.txt")
     env.reserve_1 = 1
     env.deploy_reserve_troops(GamePlayId.P1, 1)
     self.assertEqual(env.country_list[0].troops_count, 8)