

def setUp(self):
    super(TestCronView, self).setUp()
    with self.ACLChecksDisabled():
        for flow_name in [cron_system.GRRVersionBreakDown.__name__, cron_system.OSBreakDown.__name__, cron_system.LastAccessStats.__name__]:
            cron_args = cronjobs.CreateCronJobFlowArgs(periodicity='7d', lifetime='1d')
            cron_args.flow_runner_args.flow_name = flow_name
            cronjobs.CRON_MANAGER.ScheduleFlow(cron_args, job_name=flow_name, token=self.token)
        cronjobs.CRON_MANAGER.RunOnce(token=self.token)

dataset/ETHPy150Open google/grr/grr/gui/plugins/cron_view_test.py TestCronView.setUp/original