

def test_cancel_scheduled_job(self):
    '\n        When scheduled job is canceled, make sure:\n        - Job is removed from the sorted set of scheduled jobs\n        '
    time_delta = timedelta(minutes=1)
    job = job.scheduler.enqueue_in(time_delta, say_hello)
    self.scheduler.cancel(job)
    self.assertNotIn(job.id, tl(self.testconn.zrange(self.scheduler.scheduled_jobs_key, 0, 1)))

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_cancel_scheduled_job/VarMisuse@23/73 `self`->`job`