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

def test_sendData(self):

    channel = TestChannel()
    self._openChannel(channel)
    self.conn.sendData(channel, 'a')
    channel.localClosed = True
    self.conn.sendData(channel, 'b')
    self.assertEqual(self.transport.packets, [(connection.MSG_CHANNEL_DATA, ('\x00\x00\x00\xff' + common.NS('a')))])
