def test_endpointFactoryPool(self):
        """
        If a pool is passed in to L{Agent.usingEndpointFactory} it is used as
        the L{Agent} pool.
        """
        pool = object()
        agent = client.Agent.usingEndpointFactory(
            self.reactor, StubEndpointFactory(), pool)
        self.assertIs(pool, agent._pool)

        If a pool is passed in to L{Agent.usingEndpointFactory} it is used as
        the L{Agent} pool.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py