#NEWLINE# def assert_contains_lines_in_order( self , lines , contents = None ) : #NEWLINE# #INDENT# if ( contents is None ) : #NEWLINE# #INDENT# contents = self . doc_structure . flush_structure ( ) . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# for line in lines : #NEWLINE# #INDENT# self . assertIn ( line , contents ) #NEWLINE# beginning = contents . find ( line ) #NEWLINE# contents = contents [ ( self + len ( line ) ) : ]