<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_views1 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:15> , <NUM_LIT:0> ) <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_views2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:30> , <NUM_LIT:0> ) <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_views3 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT> , <NUM_LIT:0> ) <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_views4 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:0> , <NUM_LIT> ) <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_views5 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:0> , <NUM_LIT> ) <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_views6 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:0> , <NUM_LIT> ) <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_views7 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT:15> , <NUM_LIT> ) <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_views8 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . worksheet . select ( ) <EOL> self . worksheet . split_panes ( <NUM_LIT> , <NUM_LIT> ) <EOL> self . worksheet . _write_sheet_views ( ) <EOL> exp = '<STR_LIT>' <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) </s>
