def test_get_with_waiting_putters(self):
    q = asyncio.Queue(loop=self.loop, maxsize=1)
    asyncio.Task(q.put('a'), loop=self.loop)
    asyncio.Task(q.put('b'), loop=self.loop)
    test_utils.run_briefly(self.loop)
    self.assertEqual(self.loop.run_until_complete(q.get()), 'a')
    self.assertEqual(self.loop.run_until_complete(q.get()), 'b')
def test_get_with_waiting_putters(self):
    q = asyncio.Queue(loop=self.loop, maxsize=1)
    asyncio.Task(q.put('a'), loop=self.loop)
    asyncio.Task(q.put('b'), loop=self.loop)
    test_utils.run_briefly(self.loop)
    self.assertEqual(self.loop.run_until_complete(q.get()), 'a')
    self.assertEqual(self.loop.run_until_complete(q.get()), 'b')