#NEWLINE# def test_insertPrevNextText( self ) : #NEWLINE# #INDENT# '\n        L{insertPrevNextLinks} appends a text node with the title of the\n        previous slide to each node with a I{previous} class and the title of\n        the next slide to each node with a I{next} class.\n        ' #NEWLINE# next = Element ( 'span' ) #NEWLINE# next . setAttribute ( 'class' , 'next' ) #NEWLINE# container = Element ( 'div' ) #NEWLINE# container . appendChild ( next ) #NEWLINE# slideWithNext = HTMLSlide ( container , 'first' , 0 ) #NEWLINE# previous = Element ( 'span' ) #NEWLINE# previous . setAttribute ( 'class' , 'previous' ) #NEWLINE# container = Element ( 'div' ) #NEWLINE# container . appendChild ( previous ) #NEWLINE# slideWithPrevious = HTMLSlide ( container , 'second' , 1 ) #NEWLINE# insertPrevNextLinks ( [ slideWithNext , slideWithPrevious ] , None , None ) #NEWLINE# self . assertEqual ( next . toxml ( ) , '<span class="next">second</span>' ) #NEWLINE# self . assertEqual ( previous . toxml ( ) , '<span class="previous">first</span>' )