#NEWLINE# def test_create_file_in_memory( self ) : #NEWLINE# #INDENT# 'Test worksheet selection and activation.' #NEWLINE# workbook = Workbook ( self . got_filename , { #NEWLINE# #INDENT# 'in_memory' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# worksheet1 = workbook . add_worksheet ( ) #NEWLINE# worksheet2 = workbook . add_worksheet ( 'Data Sheet' ) #NEWLINE# worksheet3 = workbook . add_worksheet ( ) #NEWLINE# bold = workbook . add_format ( { #NEWLINE# #INDENT# 'bold' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# worksheet1 . write ( 'A1' , 'Foo' ) #NEWLINE# worksheet1 . write ( 'A2' , 123 ) #NEWLINE# worksheet3 . write ( 'B2' , 'Foo' ) #NEWLINE# worksheet3 . write ( 'B3' , 'Bar' , bold ) #NEWLINE# worksheet3 . write ( 'C4' , 234 ) #NEWLINE# worksheet2 . activate ( ) #NEWLINE# worksheet2 . select ( ) #NEWLINE# worksheet3 . select ( ) #NEWLINE# worksheet3 . activate ( ) #NEWLINE# workbook . close ( ) #NEWLINE# self . assertExcelEqual ( )