

def test_get_jobs_to_queue(self):
    '\n        Ensure that jobs scheduled the future are not queued.\n        '
    now = datetime.utcnow()
    job = self.scheduler.enqueue_at(now, say_hello)
    self.assertIn(job, self.scheduler.get_jobs_to_queue())
    future_time = (now + timedelta(hours=1))
    job = job.scheduler.enqueue_at(future_time, say_hello)
    self.assertNotIn(job, self.scheduler.get_jobs_to_queue())

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_get_jobs_to_queue/VarMisuse@63/101 `self`->`job`