def create_connection(self, data={}):
        defaults = {
            'identity': self.random_string(10),
        }
        defaults.update(data)
        if 'backend' not in defaults:
            defaults['backend'] = self.create_backend()
        return Connection.objects.create(**defaults)
Adds a message with the ``WARNING`` level.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/tests/harness/base.py/CreateDataMixin.create_connection--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/messages/api.py/warning