def test_outgoing_unicode_characters(self):
        message = self.create_outgoing_message()
        config = {
            "sendsms_params": {"smsc": "usb0-modem",
                               "from": "+SIMphonenumber",
                               "username": "rapidsms",
                               "password": "CHANGE-ME"},
            "charset": "UTF-8",
        }
        backend = KannelBackend(None, "kannel", **config)
        kwargs = backend.prepare_request(1, message.text,
                                         [message.connections[0].identity], {})
        data = kwargs['params']
        self.assertEqual(data['text'].decode('UTF-8'), message.text)
Ensure outgoing messages are encoded properly.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/backends/kannel/tests.py/KannelSendTest.test_outgoing_unicode_characters