'Closing a session should notify an SFTP subsystem launched by that
session.'

def test_sessionClose(self):

    testSession = session.SSHSession(conn=FakeConn(), avatar=self.avatar)
    testSession.request_subsystem(common.NS('sftp'))
    sftpServer = testSession.client.transport.proto
    self.interceptConnectionLost(sftpServer)
    testSession.closeReceived()
    self.assertSFTPConnectionLost()
