'When a client requests a PTY, the SSHSession object should make
the request by getting an ISession adapter for the avatar, then
calling getPty with the terminal type, the window size, and any modes
the client gave us.'

def test_requestPty(self):

    ret = self.session.requestReceived('pty_req', session.packRequest_pty_req('bad', (1, 2, 3, 4), ''))
    self.assertFalse(ret)
    self.assertSessionIsStubSession()
    self.assertRequestRaisedRuntimeError()
    self.assertTrue(self.session.requestReceived('pty_req', session.packRequest_pty_req('good', (1, 2, 3, 4), '')))
    self.assertEqual(self.session.session.ptyRequest, ('good', (1, 2, 3, 4), []))
