

def test_release_acquire(self):
    pool = Pool(url='ws://localhost:8182/', maxsize=2, username='stephen', password='password', future_class=Future)

    @trollius.coroutine
    def go():
        c1 = (yield From(pool.acquire()))
        (yield From(pool.release(c1)))
        c2 = (yield From(pool.acquire()))
        self.assertEqual(c1, c2)
    pool.loop.run_until_complete(go())

dataset/ETHPy150Open davebshow/gremlinclient/tests/test_trollius.py TrolliusPoolTest.test_release_acquire/VarMisuse@99/119 `self`->`pool`