<s> import unittest <EOL> from ... compatibility import StringIO <EOL> from ... styles import Styles <EOL> from ... format import Format <EOL> class TestWriteFonts ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . fh = StringIO ( ) <EOL> self . styles = Styles ( ) <EOL> self . styles . _set_filehandle ( self . fh ) <EOL> def test_write_fonts ( self ) : <EOL> """<STR_LIT>""" <EOL> xf_format = Format ( ) <EOL> xf_format . has_font = <NUM_LIT:1> <EOL> self . styles . _set_style_properties ( [ [ xf_format ] , None , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> , [ ] , [ ] ] ) <EOL> self . styles . _write_fonts ( ) <EOL> exp = """<STR_LIT>""" <EOL> got = self . fh . getvalue ( ) <EOL> self . assertEqual ( got , exp ) </s>
