def test_get_with_putters(self):
    q = asyncio.Queue(1, loop=self.loop)
    q.put_nowait(1)
    waiter = asyncio.Future(loop=self.loop)
    q._putters.append(waiter)
    res = self.loop.run_until_complete(q.get())
    self.assertEqual(1, res)
    self.assertTrue(waiter.done())
    self.assertIsNone(waiter.result())
def test_get_with_putters(self):
    q = asyncio.Queue(1, loop=self.loop)
    q.put_nowait(1)
    waiter = asyncio.Future(loop=self.loop)
    q._putters.append(waiter)
    res = self.loop.run_until_complete(q.get())
    self.assertEqual(1, res)
    self.assertTrue(waiter.done())
    self.assertIsNone(waiter.result())