#NEWLINE# def check_outbox( self , recipient_list , subject , body_part ) : #NEWLINE# #INDENT# 'test outbox for notifications' #NEWLINE# actual_recipients = [ ] #NEWLINE# for msg in mail . outbox : #NEWLINE# #INDENT# self . assertEquals ( msg . subject , subject ) #NEWLINE# self . assertTrue ( ( body_part in msg . body ) ) #NEWLINE# actual_recipients . append ( msg . to [ 0 ] ) #NEWLINE# #UNINDENT# for r in recipient_list : #NEWLINE# #INDENT# self . assertTrue ( ( r in actual_recipients ) )