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)
Create and return RapidSMS connection object. A random
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/tests/harness/base.py/CreateDataMixin.create_connection