def test_board_join(self):
        """
        When player2 join to the game, the pieces are in the board.
        """
        player1 = MockPlayer()
        player2 = MockPlayer()

        board1 = Board(player1)
        board1.join(player2)

        self.assertEqual(board1._pieces[(0, 0)], Piece(player1, 7))
    def setUp(self):
        player1 = MockPlayer()
        player2 = MockPlayer()

        board1 = Board(player1)
        board1.join(player2)

        board1._pieces = {
            (0, 0): Piece(player1, 7),
            (8, 8): Piece(player2, 7),
            (0, 3): Hole(player1),
            (8, 3): Hole(player2),
        }

        self.board = board1
        self.player1 = player1
        self.player2 = player2