def makeAgent(self):
        """
        @return: a new L{twisted.web.client.ProxyAgent}
        """
        return client.ProxyAgent(
            TCP4ClientEndpoint(self.reactor, "127.0.0.1", 1234),
            self.reactor)

        @return: a new L{twisted.web.client.ProxyAgent}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py