def test_get_cells_1(self): sb = SudokuBoard() start_state = copy.deepcopy(sb.__dict__) cells = sb.get_cells() self.assertDictEqual(cells, sb._cells) self.assertIsNot(cells, sb._cells) self.assertDictEqual(sb.__dict__, start_state)
def test_get_cells_3(self): sb = SudokuBoard() sb.set_cell(1, 2, 3) sb.set_cell(sb._min_row_value, sb._min_col_value, sb._min_val_value) sb.set_cell(sb._max_row_value, sb._max_col_value, sb._max_val_value) start_state = copy.deepcopy(sb.__dict__) cells = sb.get_cells() self.assertDictEqual(cells, sb._cells) self.assertIsNot(cells, sb._cells) self.assertDictEqual(sb.__dict__, start_state)