def test_connection_is_resurrected_after_its_timeout(self):
        pool = ConnectionPool([(x, {}) for x in range(100)])

        now = time.time()
        pool.mark_dead(42, now=now-61)
        pool.get_connection()
        self.assertEquals(42, pool.connections[-1])
        self.assertEquals(100, len(pool.connections))
dataset/ETHPy150Open elastic/elasticsearch-py/test_elasticsearch/test_connection_pool.py/TestConnectionPool.test_connection_is_resurrected_after_its_timeout/original