

def test_move_bot_exceptions(self):
    test_move_bot = ' ######\n                #  #0#\n                # 3 ##\n                #2  1#\n                ###### '
    universe = CTFUniverse.create(test_move_bot, 4)
    self.assertRaises(IllegalMoveException, test_move_bot.move_bot, 0, 'FOOBAR')
    self.assertRaises(IllegalMoveException, universe.move_bot, 0, (0, 2))
    self.assertRaises(IllegalMoveException, universe.move_bot, 0, north)
    self.assertRaises(IllegalMoveException, universe.move_bot, 0, west)
    self.assertRaises(IllegalMoveException, universe.move_bot, 0, south)
    self.assertRaises(IllegalMoveException, universe.move_bot, 0, east)
    self.assertRaises(IllegalMoveException, universe.move_bot, 1, north)
    self.assertRaises(IllegalMoveException, universe.move_bot, 1, east)
    self.assertRaises(IllegalMoveException, universe.move_bot, 1, south)
    self.assertRaises(IllegalMoveException, universe.move_bot, 2, west)
    self.assertRaises(IllegalMoveException, universe.move_bot, 2, south)

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestCTFUniverseRules.test_move_bot_exceptions/VarMisuse@31/84 `universe`->`test_move_bot`