@asyncio.coroutine
def add_putter():
    q = asyncio.Queue(maxsize=1, loop=loop)
    q.put_nowait(1)
    asyncio.Task(q.put(2), loop=loop)
    (yield from asyncio.sleep(0.1, loop=loop))
    self.assertTrue(('_putters[1]' in fn(q)))
    q.get_nowait()
@asyncio.coroutine
def add_putter():
    q = asyncio.Queue(maxsize=1, loop=loop)
    q.put_nowait(1)
    asyncio.Task(q.put(2), loop=loop)
    (yield from asyncio.sleep(0.1, loop=loop))
    self.assertTrue(('_putters[1]' in fn(q)))
    q.get_nowait()