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