

def test_create_job_with_id(self):
    '\n        Ensure that ID is passed to RQ.\n        '
    job = self.scheduler._create_job(say_hello, id='id test', args=(), kwargs={
        
    })
    job_from_queue = Job.fetch(job.id, connection=self.testconn)
    self.assertEqual('id test', job_from_queue.id)

dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py TestScheduler.test_create_job_with_id/original