def METHOD_NAME(self):
    l = []
    fun = lambda x: l.append(x)
    scheduler = sched.scheduler(time.time, time.sleep)
    for priority in [1, 2, 3, 4, 5]:
        z = scheduler.enterabs(0.01, priority, fun, (priority,))
    scheduler.run()
    self.assertEqual(l, [1, 2, 3, 4, 5])