示例#1
0
 def ListCronJobApprovals(self, requestor=None):
     requestor = requestor or self.token.username
     handler = api_user.ApiListCronJobApprovalsHandler()
     return handler.Handle(
         api_user.ApiListCronJobApprovalsArgs(),
         token=access_control.ACLToken(username=requestor)).items
示例#2
0
 def setUp(self):
     super(ApiListCronJobApprovalsHandlerTest, self).setUp()
     self.handler = user_plugin.ApiListCronJobApprovalsHandler()
 def ListCronJobApprovals(self, args, token=None):
     return api_user.ApiListCronJobApprovalsHandler()