def test_periodic_command_delay():
 with pytest.raises(ValueError) as exc_info:
  schedule.PeriodicCommand.after(0, None)
 assert (str(exc_info.value) == test_periodic_command_delay.__doc__)

def test_periodic_command_delay ( ) : with pytest . raises ( ValueError ) as exc_info : schedule . PeriodicCommand . after ( 0 , None ) assert ( str ( exc_info . value ) == test_periodic_command_delay . __doc__ )
a periodiccommand must have a positive .