#NEWLINE# def test_hyperlink_formating_explicit( self ) : #NEWLINE# #INDENT# 'Test the creation of a simple XlsxWriter file with hyperlinks. This example has link formatting.' #NEWLINE# workbook = Workbook ( self . got_filename ) #NEWLINE# workbook . custom_colors = [ 'FF0000FF' ] #NEWLINE# worksheet = workbook . add_worksheet ( ) #NEWLINE# format1 = workbook . add_format ( { #NEWLINE# #INDENT# 'color' : 'blue' , #NEWLINE# 'underline' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# format2 = workbook . add_format ( { #NEWLINE# #INDENT# 'color' : 'red' , #NEWLINE# 'underline' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# worksheet . write_url ( 'A1' , 'http://www.python.org/1' , format1 ) #NEWLINE# worksheet . write_url ( 'A2' , 'http://www.python.org/2' , format2 ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )