#NEWLINE# def check_for_loop( self , expr , seq , pickle = True ) : #NEWLINE# #INDENT# if pickle : #NEWLINE# #INDENT# self . check_pickle ( iter ( expr ) , seq ) #NEWLINE# #UNINDENT# res = [ ] #NEWLINE# for val in expr : #NEWLINE# #INDENT# res . append ( val ) #NEWLINE# #UNINDENT# self . assertEqual ( res , seq )