

def test_job_membership(self):
    now = datetime.utcnow()
    job = self.scheduler.enqueue_at(now, say_hello)
    self.assertIn(job, self.scheduler)
    self.assertIn(job.id, self.scheduler)
    self.assertNotIn('non-existing-job-id', self.scheduler)

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