def test_input(self):
     for x in [
             '2009-1-1',
             datetime.datetime(2009, 1, 1),
             datetime.datetime(2009, 1, 1, 11, 0)
     ]:
         with self.assertRaises((TypeError, ValueError)):
             tasks._get_daily_jobs(x)
Exemple #2
0
 def test_input(self):
     for x in ['2009-1-1',
               datetime.datetime(2009, 1, 1),
               datetime.datetime(2009, 1, 1, 11, 0)]:
         with self.assertRaises((TypeError, ValueError)):
             tasks._get_daily_jobs(x)