<s> import unittest <EOL> from ... compatibility import StringIO <EOL> from ... worksheet import Worksheet <EOL> class TestWriteSheetView ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . fh = StringIO ( ) <EOL> self . worksheet = Worksheet ( ) <EOL> self . worksheet . _set_filehandle ( self . fh ) <EOL> def test_write_sheet_view_tab_not_selected ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_view_tab_selected ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_view_hide_gridlines ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . hide_gridlines ( ) <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_view_hide_gridlines_0 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . hide_gridlines ( <NUM_LIT:0> ) <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_view_hide_gridlines_1 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . hide_gridlines ( <NUM_LIT:1> ) <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_view_hide_gridlines_2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . hide_gridlines ( <NUM_LIT:2> ) <EOL> self . worksheet . _write_sheet_view ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) </s>
