

def test_reset_bot_bot_positions(self):
    test_reset_bot = ' ########\n                #0     #\n                #2    3#\n                #     1#\n                ######## '
    number_bots = 4
    universe = CTFUniverse.create(test_reset_bot, number_bots)
    self.assertEqual(str(universe), str(Layout(test_reset_bot, layout_chars, number_bots).as_mesh()))
    self.assertEqual(universe.bot_positions, [(1, 1), (6, 3), (1, 2), (6, 2)])
    test_shuffle = ' ########\n                #   0 3#\n                # 1    #\n                # 2    #\n                ######## '
    universe.bots[0].current_pos = (4, 1)
    universe.bots[1].current_pos = (2, 2)
    universe.bots[2].current_pos = (2, 3)
    universe.bots[3].current_pos = (6, 1)
    self.assertEqual(universe.bot_positions, [(4, 1), (2, 2), (2, 3), (6, 1)])
    self.assertEqual(str(universe), str(Layout(test_shuffle, layout_chars, number_bots).as_mesh()))
    universe.bots[0]._to_initial()
    universe.bots[1]._to_initial()
    universe.bots[2]._to_initial()
    universe.bots[3]._to_initial()
    test_reset_bot.assertEqual(str(universe), str(Layout(test_reset_bot, layout_chars, number_bots).as_mesh()))
    self.assertEqual(universe.bot_positions, [(1, 1), (6, 3), (1, 2), (6, 2)])

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestCTFUniverseRules.test_reset_bot_bot_positions/VarMisuse@259/392 `self`->`test_reset_bot`