def test_put_already_filled(self): board = Board() x, y = 1, 1 board.put(x, y, Sign.x) self.assertRaises(IndexError, board.put, x, y, Sign.x)
def test_put(self): board = Board() x, y = 2, 1 board.put(x, y, Sign.x) self.assertEqual(Sign.x, board.board[x][y])