#NEWLINE# def test_create_file( self ) : #NEWLINE# #INDENT# 'Test the creation of a simple XlsxWriter file with tables.' #NEWLINE# workbook = Workbook ( self . got_filename ) #NEWLINE# worksheet = workbook . add_worksheet ( ) #NEWLINE# worksheet . set_column ( 'C:F' , 10.288 ) #NEWLINE# worksheet . write_string ( 'A1' , 'Column1' ) #NEWLINE# worksheet . write_string ( 'B1' , 'Column2' ) #NEWLINE# worksheet . write_string ( 'C1' , 'Column3' ) #NEWLINE# worksheet . write_string ( 'D1' , 'Column4' ) #NEWLINE# worksheet . write_string ( 'E1' , 'Total' ) #NEWLINE# worksheet . add_table ( 'C3:F14' , { #NEWLINE# #INDENT# 'total_row' : 1 , #NEWLINE# 'columns' : [ { #NEWLINE# #INDENT# 'total_string' : 'Total' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'total_function' : 'count' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )