def test_requestPtyReqGetsSession(self):
        """
        If an ISession adapter isn't already present, request_pty_req should
        get one.
        """
        self.session.requestReceived(b'pty_req',
                                     session.packRequest_pty_req(
                b'term', (0, 0, 0, 0), b''))
        self.assertSessionProvidesISession()

        If an ISession adapter isn't already present, request_pty_req should
        get one.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_session.py