def test_periodic_command_fixed_delay():
 fd = schedule.PeriodicCommandFixedDelay.at_time(at=datetime.datetime.now(), delay=datetime.timedelta(seconds=2), function=(lambda : None))
 assert (fd.due() is True)
 assert (fd.next().due() is False)

def test_periodic_command_fixed_delay ( ) : fd = schedule . PeriodicCommandFixedDelay . at_time ( at = datetime . datetime . now ( ) , delay = datetime . timedelta ( seconds = 2 ) , function = ( lambda : None ) ) assert ( fd . due ( ) is True ) assert ( fd . next ( ) . due ( ) is False )
test that we can construct a periodic command with a fixed initial delay .