'When a client requests a shell, the SSHSession object should get
the shell by getting an ISession adapter for the avatar, then
calling openShell() with a ProcessProtocol to attach.'

def test_requestShell(self):

    ret = self.session.requestReceived('shell', '')
    self.assertTrue(ret)
    self.assertSessionIsStubSession()
    self.assertIsInstance(self.session.client, session.SSHSessionProcessProtocol)
    self.assertIs(self.session.session.shellProtocol, self.session.client)
    self.assertFalse(self.session.requestReceived('shell', ''))
    self.assertRequestRaisedRuntimeError()
