

def test_order(self):
    q = queues.Queue()
    for i in [1, 3, 2]:
        q.put_nowait(i)
    items = [q.get_nowait() for _ in range(3)]
    self.assertEqual([1, 3, 2], items)

dataset/ETHPy150Open tornadoweb/tornado/tornado/test/queues_test.py QueueBasicTest.test_order/original