def METHOD_NAME(self):
    l = []
    fun = lambda x: l.append(x)
    scheduler = sched.scheduler(time.time, time.sleep)
    for x in [0.5, 0.4, 0.3, 0.2, 0.1]:
        z = scheduler.enter(x, 1, fun, (x,))
    scheduler.run()
    self.assertEqual(l, [0.1, 0.2, 0.3, 0.4, 0.5])