#NEWLINE# def testSendsEmailsToGrrUsersAndCcAddresses( self ) : #NEWLINE# #INDENT# addresses = [ ] #NEWLINE# def SendEmailStub( to_user , from_user , unused_subject , unused_message , cc_addresses = None , **unused_kwargs ) : #NEWLINE# #INDENT# addresses . append ( ( to_user , from_user , cc_addresses ) ) #NEWLINE# #UNINDENT# with utils . Stubber ( email_alerts . EMAIL_ALERTER , 'SendEmail' , SendEmailStub ) : #NEWLINE# #INDENT# self . handler . Handle ( self . args , token = self . token ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( addresses ) , 1 ) #NEWLINE# self . assertEqual ( addresses [ 0 ] , ( 'approver' , 'test' , 'test@example.com' ) )