#NEWLINE# def _load_lines( self , filename , line_generator , suite , rules ) : #NEWLINE# #INDENT# 'Load a suite with lines produced by the line generator.' #NEWLINE# line_counter = 0 #NEWLINE# for line in line_generator : #NEWLINE# #INDENT# line_counter += 1 #NEWLINE# if ( line . category in self . ignored_lines ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( line . category == 'test' ) : #NEWLINE# #INDENT# suite . addTest ( Adapter ( filename , line ) ) #NEWLINE# rules . saw_test ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( line . category == 'plan' ) : #NEWLINE# #INDENT# if line . skip : #NEWLINE# #INDENT# rules . handle_skipping_plan ( line ) #NEWLINE# return suite #NEWLINE# #UNINDENT# rules . saw_plan ( line , line_counter ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( line . category == 'bail' ) : #NEWLINE# #INDENT# rules . handle_bail ( line ) #NEWLINE# return suite #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( line . category == 'version' ) : #NEWLINE# #INDENT# rules . saw_version_at ( line_counter ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# rules . check ( line_counter ) #NEWLINE# return suite