def test_requestWindowChangeGetsSession(self):
        """
        If an ISession adapter isn't already present, request_window_change
        should get one.
        """
        self.session.requestReceived(
            b'window_change',
            session.packRequest_window_change(
                (1, 1, 1, 1)))
        self.assertSessionProvidesISession()

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