#NEWLINE# def test_create_file( self ) : #NEWLINE# #INDENT# 'Test the creation of an XlsxWriter file with point formatting.' #NEWLINE# workbook = Workbook ( self . got_filename ) #NEWLINE# worksheet = workbook . add_worksheet ( ) #NEWLINE# chart = workbook . add_chart ( { #NEWLINE# #INDENT# 'type' : 'pie' , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = [ 2 , 5 , 4 , 1 , 7 , 4 ] #NEWLINE# worksheet . write_column ( 'A1' , data ) #NEWLINE# chart . add_series ( { #NEWLINE# #INDENT# 'values' : '=Sheet1!$A$1:$A$6' , #NEWLINE# 'points' : [ { #NEWLINE# #INDENT# 'fill' : { #NEWLINE# #INDENT# 'color' : 'red' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# worksheet . insert_chart ( 'E9' , chart ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )