<s> import unittest <EOL> from ... compatibility import StringIO <EOL> from ... worksheet import Worksheet <EOL> class TestWriteSheetViews ( 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_views ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_views_zoom_100 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . set_zoom ( <NUM_LIT:100> ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_views_zoom_200 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . set_zoom ( <NUM_LIT:200> ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_views_right_to_left ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . right_to_left ( ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_views_hide_zero ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . hide_zero ( ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) <EOL> def test_write_sheet_views_page_view ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . set_page_view ( ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) </s>
