def testWhenTrySetDateInCorrectAndNonEditableCellThenShouldThrownAnException(self): sudoku = SudokuBoard(3) sudoku.set_editable('C', 2, False) try: sudoku.set_value('C', 2, '2') self.fail("Did not raise the exception CellNotEditableException") except CellNotEditableException: pass