Пример #1
0
 def test_tick_when_dynamic(self):
     # hopefully not that common?
     date = test_date()
     compare(date.today(), expected=date(2001, 1, 1))
     date.tick(days=1)
     compare(date.today(), expected=date(2001, 1, 3))
Пример #2
0
 def test_tick_with_timedelta_instance(self):
     date = test_date(delta=0)
     compare(date.today(), expected=d(2001, 1, 1))
     date.tick(timedelta(days=1))
     compare(date.today(), expected=d(2001, 1, 2))
Пример #3
0
 def test_tick_when_static(self):
     date = test_date(delta=0)
     compare(date.today(), expected=d(2001, 1, 1))
     date.tick(days=1)
     compare(date.today(), expected=d(2001, 1, 2))