Exemple #1
0
 def assertScheduleTimezone(self, callback, expected_schedule):
     for expected_date, expected_offset in expected_schedule:
         d = callback()
         self.assertEqual(expected_date, d.replace(tzinfo=None))
         self.assertEqual(expected_offset, croniter._timedelta_to_seconds(d.utcoffset()))
Exemple #2
0
 def assertScheduleTimezone(self, callback, expected_schedule):
     for expected_date, expected_offset in expected_schedule:
         d = callback()
         self.assertEqual(expected_date, d.replace(tzinfo=None))
         self.assertEqual(expected_offset,
                          croniter._timedelta_to_seconds(d.utcoffset()))