#NEWLINE# def assert_contains_lines_in_order( self , lines , contents ) : #NEWLINE# #INDENT# for line in lines : #NEWLINE# #INDENT# self . assertIn ( line , contents ) #NEWLINE# beginning = contents . find ( line ) #NEWLINE# contents = contents [ ( beginning + len ( line ) ) : ]