'Test that channel open confirmation packets cause the channel to be
notified that it\'s open.'

def test_CHANNEL_OPEN_CONFIRMATION(self):

    channel = TestChannel()
    self.conn.openChannel(channel)
    self.conn.ssh_CHANNEL_OPEN_CONFIRMATION(('\x00\x00\x00\x00' * 5))
    self.assertEqual(channel.remoteWindowLeft, 0)
    self.assertEqual(channel.remoteMaxPacket, 0)
    self.assertEqual(channel.specificData, '\x00\x00\x00\x00')
    self.assertEqual(self.conn.channelsToRemoteChannel[channel], 0)
    self.assertEqual(self.conn.localToRemoteChannel[0], 0)
