def test_given_a_sudoku_table_then_should_convert_it_to_dictionary(self): sudoku = SudokuBoard(3) rows = ['A', 'B', 'C'] cols = range(1, 4) for row in rows: for col in cols: sudoku.set_value(row, col, self.dic_with_data[row + str(col)]) dictionary = sudoku.to_dictionary() self.assertDictEqual(self.dic_with_data, dictionary)