'Test that channel close messages are passed up to the channel.  Also,
test that channel.close() is called if both sides are closed when this
message is received.'

def test_CHANNEL_CLOSE(self):

    channel = TestChannel()
    self._openChannel(channel)
    self.conn.sendClose(channel)
    self.conn.ssh_CHANNEL_CLOSE('\x00\x00\x00\x00')
    self.assertTrue(channel.gotOneClose)
    self.assertTrue(channel.gotClosed)
