'When the client requests to change the window size, the SSHSession
object should make the request by getting an ISession adapter for the
avatar, then calling windowChanged with the new window size.'

def test_requestWindowChange(self):

    ret = self.session.requestReceived('window_change', session.packRequest_window_change((0, 0, 0, 0)))
    self.assertFalse(ret)
    self.assertRequestRaisedRuntimeError()
    self.assertSessionIsStubSession()
    self.assertTrue(self.session.requestReceived('window_change', session.packRequest_window_change((1, 2, 3, 4))))
    self.assertEqual(self.session.session.windowChange, (1, 2, 3, 4))
