'Test the _write_sheet_view() method. Tab selected + hide_gridlines()'

def test_write_sheet_view_hide_gridlines(self):

    self.worksheet.select()
    self.worksheet.hide_gridlines()
    self.worksheet._write_sheet_view()
    exp = '<sheetView    tabSelected="1"    workbookViewId="0"/>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
