'When a client executes a command, it should be able to give pass data
back and forth.'

def test_requestExecWithData(self):

    ret = self.session.requestReceived('exec', common.NS('repeat    hello'))
    self.assertTrue(ret)
    self.assertSessionIsStubSession()
    self.session.dataReceived('some    data')
    self.assertEqual(self.session.session.execTransport.data, 'some    data')
    self.assertEqual(self.session.conn.data[self.session], ['hello', 'some    data', '\r\n'])
    self.session.eofReceived()
    self.session.closeReceived()
    self.session.closed()
    self.assertTrue(self.session.session.execTransport.closed)
    self.assertEqual(self.session.conn.requests[self.session], [('exit-status', '\x00\x00\x00\x00', False)])
