'Grants an approval for a given cron job.'

def GrantCronJobApproval(self, cron_job_urn, token=None):

    token = (token or self.token)
    security.CronJobApprovalRequestor(subject_urn=rdfvalue.RDFURN(cron_job_urn), reason=self.token.reason, approver='approver', token=token).Request()
    self.CreateAdminUser('approver')
    approver_token = access_control.ACLToken(username='approver')
    security.CronJobApprovalGrantor(subject_urn=cron_job_urn, reason=token.reason, delegate=token.username, token=approver_token).Grant()
