def test_return_false_if_num_is_not_in_box(self): sudoku_test_box = BacktrakingAlgorithm("092300000", "0") square = [['1', '4', '8'], ['2', '7', '6'], ['5', '3', '0']] self.assertFalse(sudoku_test_box.used_in_box(square, 0, 0, 9))
def test_return_true_if_num_is_already_in_box(self): sudoku_test_box = BacktrakingAlgorithm("092300000", "0") square = [['1', '4', '8'], ['2', '7', '6'], ['5', '3', '0']] self.assertTrue(sudoku_test_box.used_in_box(square, 0, 0, 1))