def testBlock2(self):
        d = Deque()
        Tasklet.later(0.5, d.append)(10)
        Tasklet.later(1.0, d.append)(20)
        Tasklet.sleep(1.5)
        s = time.time()
        #should not block
        self.assertEquals(20, d.pop(True))
        self.assertEquals(10, d.pop(True))
        e = time.time()
        self.assertAlmostEqual(0.0, (e - s), places = 1)
dataset/ETHPy150Open concurrence/concurrence/test/testdeque.py/TestDeque.testBlock2/original