#NEWLINE# def testRendersRequestedClientApproval( self ) : #NEWLINE# #INDENT# flow . GRRFlow . StartFlow ( client_id = self . client_id , flow_name = 'RequestClientApprovalFlow' , reason = 'blah' , subject_urn = self . client_id , approver = 'approver' , email_cc_address = 'test@example.com' , token = result . token ) #NEWLINE# args = user_plugin . ApiGetUserClientApprovalArgs ( client_id = self . client_id , reason = 'blah' ) #NEWLINE# result = self . handler . Handle ( args , token = self . token ) #NEWLINE# self . assertEqual ( result . subject . urn , self . client_id ) #NEWLINE# self . assertEqual ( result . reason , 'blah' ) #NEWLINE# self . assertEqual ( result . is_valid , False ) #NEWLINE# self . assertEqual ( result . is_valid_message , 'Requires 2 approvers for access.' ) #NEWLINE# self . assertEqual ( result . notified_users , [ 'approver' ] ) #NEWLINE# self . assertEqual ( result . email_cc_addresses , [ 'test@example.com' ] ) #NEWLINE# self . assertEqual ( result . approvers , [ self . token . username ] )