<s> import unittest <EOL> from ... compatibility import StringIO <EOL> from . . helperfunctions import _xml_to_list <EOL> from ... worksheet import Worksheet <EOL> class TestAssembleWorksheet ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_assemble_xml_file ( self ) : <EOL> """<STR_LIT>""" <EOL> self . maxDiff = None <EOL> fh = StringIO ( ) <EOL> worksheet = Worksheet ( ) <EOL> worksheet . _set_filehandle ( fh ) <EOL> worksheet . select ( ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:1> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:2> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:3> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:4> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:5> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:6> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:7> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:8> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:9> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:10> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:11> ) <EOL> worksheet . write ( '<STR_LIT>' , <NUM_LIT:12> ) <EOL> worksheet . conditional_format ( '<STR_LIT>' , <EOL> { '<STR_LIT:type>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT:5> , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) <EOL> worksheet . _assemble_xml_file ( ) <EOL> exp = _xml_to_list ( """<STR_LIT>""" ) <EOL> got = _xml_to_list ( fh . getvalue ( ) ) <EOL> self . assertEqual ( got , exp ) </s>
