def test_tick_when_dynamic(self): # hopefully not that common? time = test_time() compare(time(), expected=978307200.0) time.tick(seconds=1) compare(time(), expected=978307202.0)
def test_tick_with_timedelta_instance(self): time = test_time(delta=0) compare(time(), expected=978307200.0) time.tick(timedelta(seconds=1)) compare(time(), expected=978307201.0)
def test_tick_when_static(self): time = test_time(delta=0) compare(time(), expected=978307200.0) time.tick(seconds=1) compare(time(), expected=978307201.0)