def METHOD_NAME(mockconfig, botfactory):
    mockbot = botfactory(mockconfig)
    scheduler = jobs.Scheduler(mockbot)
    assert not scheduler.stopping.is_set(), 'Stopping must not be set at init'
    scheduler.stop()
    assert scheduler.stopping.is_set(), 'Stopping must have been set'