def test_enqueue_next(self):
        job = self.q.enqueue_next(self.job)
        self.assertIsNotNone(job.id)
        self.assertNotEqual(job.id, self.job.id)
        self.assertEqual(job.scheduled_for,
            self.job.scheduled_for + self.job.interval)
Sort generators in a reasonably intelligent way.
dataset/ETHPy150Open bretth/django-pq/test_pq/test_queue.py/TestEnqueueNext.test_enqueue_next--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/polyutils.py/_sort_gens