'The payload of a pty-req message is::
string  terminal
uint32  columns
uint32  rows
uint32  x pixels
uint32  y pixels
string  modes
Modes are::
byte    mode number
uint32  mode value'

def test_parseRequest_pty_req(self):

    self.assertEqual(session.parseRequest_pty_req(((common.NS('xterm') + struct.pack('>4L', 1, 2, 3, 4)) + common.NS(struct.pack('>BL', 5, 6)))), ('xterm', (2, 1, 3, 4), [(5, 6)]))
