def validate(self, line):
     config = schedule_parse.ConfigGenericSchedule('cron', line, None)
     context = config_utils.NullConfigContext
     return schedule_parse.valid_cron_scheduler(config, context)
Exemple #2
0
 def validate(self, line):
     config = schedule_parse.ConfigGenericSchedule('cron', line, None)
     context = config_utils.NullConfigContext
     return schedule_parse.valid_cron_scheduler(config, context)
Exemple #3
0
 def test_valid_config(self):
     line = "5 0 L * *".split()
     config = schedule_parse.valid_cron_scheduler(line)
     assert_equal(config.minutes, [5])
     assert_equal(config.months, None)
     assert_equal(config.monthdays, ["LAST"])