def test_input_player_click(self):
     timer = MockTimer()
     chess = MockChess()
     player = InputPlayer(WHITE, timer, chess)
     player.start_turn()
     player.click(False)
     self.assertEqual(chess.selected, None)
     player.click((1, 1))
     self.assertEqual(chess.selected, (1, 1))
     self.assertEqual(chess.played, False)
     player.click((1, 2))
     self.assertEqual(chess.played, True)
 def test_input_player_confirm_draw(self):
     timer = MockTimer()
     chess = MockChess()
     player = InputPlayer(WHITE, timer, chess)
     player.confirm_draw()
     self.assertEqual(chess.confirm_draw, player)