Exemplo n.º 1
0
 def test_print_filled_square(self):
     """
     Printing a square with a piece in it should result in that piece ('X' or 'O').
     """
     board = Board()
     board.set_square(1, 'X')
     self.assertEqual('X', board.print_square(1))
Exemplo n.º 2
0
 def test_print_empty_square(self):
     """
     Printing an empty square should result in ' '.
     """
     board = Board()
     self.assertEqual(' ', board.print_square(1))