+ def test_allow_chess_move_knight(self):
+ board = GameBoard.new_game([{'actions': []}])
+ board.board_locations = self.generate_locations()
+ board.allow_chess_move(MOVES.KNIGHT)
+ self.assertEqual(board.player.movement_mode, MOVES.KNIGHT)
+
+ def test_allow_chess_move_bishop(self):
+ board = GameBoard.new_game([{'actions': []}])
+ board.board_locations = self.generate_locations()
+ board.allow_chess_move(MOVES.BISHOP)
+ self.assertEqual(board.player.movement_mode, MOVES.BISHOP)
+
+ def test_allow_chess_move_castle(self):
+ board = GameBoard.new_game([{'actions': []}])
+ board.board_locations = self.generate_locations()
+ board.allow_chess_move(MOVES.CASTLE)
+ self.assertEqual(board.player.movement_mode, MOVES.CASTLE)
+
+