Exemple #1
0
 def setUp(self):
     super(ApiListHuntApprovalsHandlerTest, self).setUp()
     self.handler = user_plugin.ApiListHuntApprovalsHandler()
 def ListHuntApprovals(self, args, token=None):
     return api_user.ApiListHuntApprovalsHandler()
Exemple #3
0
 def ListHuntApprovals(self, requestor=None):
     requestor = requestor or self.token.username
     handler = api_user.ApiListHuntApprovalsHandler()
     return handler.Handle(
         api_user.ApiListHuntApprovalsArgs(),
         token=access_control.ACLToken(username=requestor)).items