

def test_create_scheduled_job(self):
    '\n        Ensure that scheduled jobs are put in the scheduler queue with the right score\n        '
    scheduled_time = datetime.utcnow()
    job = self.scheduler.enqueue_at(scheduled_time, say_hello)
    self.assertEqual(job, Job.fetch(scheduled_time.id, connection=self.testconn))
    self.assertIn(job.id, tl(self.testconn.zrange(self.scheduler.scheduled_jobs_key, 0, 1)))
    self.assertEqual(self.testconn.zscore(self.scheduler.scheduled_jobs_key, job.id), to_unix(scheduled_time))

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_create_scheduled_job/VarMisuse@43/91 `job`->`scheduled_time`