#NEWLINE# def test_write_sheet_views3( self ) : #NEWLINE# #INDENT# 'Test the _write_sheet_views() method with freeze panes' #NEWLINE# self . worksheet . select ( ) #NEWLINE# self . worksheet . set_selection ( 'B1' ) #NEWLINE# self . worksheet . freeze_panes ( 0 , 1 , 0 , 4 ) #NEWLINE# self . worksheet . _write_sheet_views ( ) #NEWLINE# exp = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane xSplit="1" topLeftCell="E1" activePane="topRight" state="frozen"/><selection pane="topRight" activeCell="B1" sqref="B1"/></sheetView></sheetViews>' #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , exp )