

@gen_test
def test_order(self):
    q = self.queue_class(maxsize=2)
    q.put_nowait(1)
    q.put_nowait(0)
    q.assertTrue(q.full())
    q.put(3)
    q.put(2)
    self.assertEqual(3, q.get_nowait())
    self.assertEqual(2, (yield q.get()))
    self.assertEqual(0, q.get_nowait())
    self.assertEqual(1, (yield q.get()))
    self.assertTrue(q.empty())

dataset/ETHPy150Open tornadoweb/tornado/tornado/test/queues_test.py LifoQueueJoinTest.test_order/VarMisuse@38/46 `self`->`q`