#NEWLINE# def testIncludesApproversInResultWhenApprovalIsGranted( self ) : #NEWLINE# #INDENT# flow . GRRFlow . StartFlow ( client_id = self . client_id , flow_name = 'RequestClientApprovalFlow' , reason = 'blah' , subject_urn = self . client_id , approver = 'approver' , token = self . token ) #NEWLINE# approver_token = access_control . ACLToken ( username = 'approver' ) #NEWLINE# flow . GRRFlow . StartFlow ( client_id = self . client_id , flow_name = 'GrantClientApprovalFlow' , reason = 'blah' , delegate = self . token . username , subject_urn = self . client_id , token = approver_token ) #NEWLINE# args = user_plugin . ApiGetUserClientApprovalArgs ( client_id = self . client_id , reason = 'blah' ) #NEWLINE# result = self . handler . Handle ( args , token = self . token ) #NEWLINE# self . assertTrue ( result . is_valid ) #NEWLINE# self . assertEqual ( sorted ( result . approvers ) , sorted ( [ approver_token . username , self . token . username ] ) )