def connectionMade(self):
        """
        Set up the instance variables.  If we have any packetData, send it
        along.
        """

        self.data = b''
        self.open = True
        self.reason = None
        if self.packetData:
            self.dataReceived(self.packetData)

        Set up the instance variables.  If we have any packetData, send it
        along.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_session.py