def test_create_job_with_ttl(self):
        job = self.scheduler._create_job(say_hello, ttl=2, args=(), kwargs={})
        job_from_queue = Job.fetch(job.id, connection=self.testconn)
        self.assertEqual(2, job_from_queue.ttl)
Ensure that TTL is passed to RQ.
dataset/ETHPy150Open ui/rq-scheduler/tests/test_scheduler.py/TestScheduler.test_create_job_with_ttl