<s> """<STR_LIT>""" <EOL> from xml . dom . minidom import Element , Text <EOL> from twisted . trial . unittest import TestCase <EOL> from twisted . lore . docbook import DocbookSpitter <EOL> class DocbookSpitterTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_li ( self ) : <EOL> """<STR_LIT>""" <EOL> output = [ ] <EOL> spitter = DocbookSpitter ( output . append ) <EOL> li = Element ( '<STR_LIT>' ) <EOL> li . appendChild ( Element ( '<STR_LIT:p>' ) ) <EOL> text = Text ( ) <EOL> text . data = '<STR_LIT>' <EOL> li . appendChild ( text ) <EOL> spitter . visitNode ( li ) <EOL> self . assertEqual ( <EOL> '<STR_LIT>' . join ( output ) , <EOL> '<STR_LIT>' ) </s>
