'Test that open channel messages are sent in the right format.'

def test_openChannel(self):

    channel = TestChannel()
    self.conn.openChannel(channel, 'aaaa')
    self.assertEqual(self.transport.packets, [(connection.MSG_CHANNEL_OPEN, (common.NS('TestChannel') + '\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x80\x00aaaa'))])
    self.assertEqual(channel.id, 0)
    self.assertEqual(self.conn.localChannelID, 1)
