def setUp(self):
        """
        Create an L{HTTP11ClientProtocol} connected to a fake transport.
        """
        self.transport = StringTransport()
        self.protocol = HTTP11ClientProtocol()
        self.protocol.makeConnection(self.transport)

        Create an L{HTTP11ClientProtocol} connected to a fake transport.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_newclient.py