#NEWLINE# def test_write_sheet_views1( self ) : #NEWLINE# #INDENT# 'Test the _write_sheet_views() method with split panes + selection' #NEWLINE# self . worksheet . select ( ) #NEWLINE# self . worksheet . set_selection ( 'A2' ) #NEWLINE# self . worksheet . split_panes ( 15 , 0 ) #NEWLINE# self . worksheet . _write_sheet_views ( ) #NEWLINE# exp = '<sheetViews><sheetView tabSelected="1" workbookViewId="0"><pane ySplit="600" topLeftCell="A2" activePane="bottomLeft"/><selection pane="bottomLeft" activeCell="A2" sqref="A2"/></sheetView></sheetViews>' #NEWLINE# got = self . fh . getvalue ( ) #NEWLINE# self . assertEqual ( got , exp )