def test_database_wrapper(self):
        try:
            from django.db import connections
        except __HOLE__:
            # Django <1.2
            return  # :(
        connection = connections['mongodb']
        self.assertTrue(hasattr(connection, 'connection'))  # stupid name!
        # needed attribute
        self.assertTrue(hasattr(connection.connection, 'autocommit'))
dataset/ETHPy150Open peterbe/django-mongokit/django_mongokit/tests.py/MongoDBBaseTestCase.test_database_wrapper