'Test the _write_sheet_views() method with freeze panes'

def test_write_sheet_views2(self):

    self.worksheet.select()
    self.worksheet.set_selection('A1')
    self.worksheet.freeze_panes(1, 0, 20, 0)
    self.worksheet._write_sheet_views()
    exp = '<sheetViews><sheetView    tabSelected="1"    workbookViewId="0"><pane    ySplit="1"    topLeftCell="A21"    activePane="bottomLeft"    state="frozen"/><selection    pane="bottomLeft"/></sheetView></sheetViews>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
