def create_test_db(self, verbosity=1, autoclobber=False):
        if verbosity >= 1:
            print "Creating test database..."

        test_database_name = self._create_test_db(verbosity, autoclobber)

        self.connection.close()
        settings.DATABASE_NAME = test_database_name
        self.connection.settings_dict["DATABASE_NAME"] = test_database_name
        can_rollback = self._rollback_works()
        settings.DATABASE_SUPPORTS_TRANSACTIONS = can_rollback
        self.connection.settings_dict["DATABASE_SUPPORTS_TRANSACTIONS"] = can_rollback

        call_command('syncdb', verbosity=verbosity, interactive=False)

        if settings.CACHE_BACKEND.startswith('db://'):
            from django.core.cache import parse_backend_uri
            _, cache_name, _ = parse_backend_uri(settings.CACHE_BACKEND)
            call_command('createcachetable', cache_name)

        # Get a cursor (even though we don't need one yet). This has
        # the side effect of initializing the test database.
        cursor = self.connection.cursor()

        return test_database_name
Creates a test database, prompting the user for confirmation if the
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/backends/creation.py/BaseDatabaseCreation.create_test_db