def test_first_run(self): self.assertEqual(when(), None) self.assertEqual(recorder(), None)
def test_next_run(self): self.assertIsInstance(when(), datetime.datetime) self.assertIsInstance(recorder(), datetime.timedelta)