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