def test_valid_subgrid(self): self.assertTrue(sudoku.valid_subgrid(self.sudokuGrid, 1, 2)) self.sudokuGrid[4][7] = [4] self.assertFalse(sudoku.valid_subgrid(self.sudokuGrid, 1, 2))
def test_valid_subgrid(self): self.assertTrue(sudoku.valid_subgrid(sudoku.listify(self.sudokuGrid), 1, 2)) self.sudokuGridListified[4][7] = 4 self.assertFalse(sudoku.valid_subgrid(self.sudokuGridListified, 1, 2))