#NEWLINE# def test_create_file( self ) : #NEWLINE# #INDENT# 'Test the creation of a simple XlsxWriter file with tables.' #NEWLINE# workbook = Workbook ( worksheet . got_filename ) #NEWLINE# worksheet = workbook . add_worksheet ( ) #NEWLINE# data = [ [ 'Foo' , 1234 , 2000 , 4321 ] , [ 'Bar' , 1256 , 0 , 4320 ] , [ 'Baz' , 2234 , 3000 , 4332 ] , [ 'Bop' , 1324 , 1000 , 4333 ] ] #NEWLINE# worksheet . set_column ( 'C:F' , 10.288 ) #NEWLINE# worksheet . add_table ( 'C2:F6' , { #NEWLINE# #INDENT# 'data' : data , #NEWLINE# #UNINDENT# } ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )