Beispiel #1
0
 def test_naive_eta_no_tz(self):
     ex = exceptions.RetryLaterException('', eta=datetime.now())
     self.assertIsNone(ex.eta.tzinfo)
Beispiel #2
0
 def test_aware_eta_no_tz(self):
     ex = exceptions.RetryLaterException('', eta=timezone.now())
     self.assertIsNone(ex.eta.tzinfo)
Beispiel #3
0
 def test_no_eta_tz(self):
     ex = exceptions.RetryLaterException('', countdown=3)
     self.assertIsNotNone(ex.eta.tzinfo)