def test_create_test_database_by_specific_bad_name(self):
        from django.conf import settings
        try:
            assert settings.DATABASES in 'mongodb'
        except AttributeError:
            # Django <1.2
            return
        settings.DATABASES['mongodb']['TEST_NAME'] = "muststartwith__test_"
        from django.db import connections
        connection = connections['mongodb']

        # why doesn't this work?!?!
        #from mongodb.base import DatabaseError
        #self.assertRaises(DatabaseError, connection.creation.create_test_db)
        self.assertRaises(Exception, connection.creation.create_test_db)
dataset/ETHPy150Open peterbe/django-mongokit/django_mongokit/tests.py/MongoDBBaseTestCase.test_create_test_database_by_specific_bad_name/swapped operands of `in`