#NEWLINE# @ mock . patch ( 'website.notifications.emails.store_emails' ) #NEWLINE# def test_notify_sends_with_correct_args( self , mock_store ) : #NEWLINE# #INDENT# time_now = datetime . datetime . utcnow ( ) #NEWLINE# emails . notify ( 'comments' , user = self . user , node = self . node , timestamp = time_now ) #NEWLINE# assert_true ( mock_store . called ) #NEWLINE# mock_store . assert_called_with ( [ self . project . creator . _id ] , 'email_transactional' , 'comments' , self . user , self . node , time_now )