def run_tests(self):
        """
        Fire up the Django test suite developed for version 1.2
        """
        settings.configure(
            ROOT_URLCONF = 'safedelete.tests',
            DEBUG = True,
            DATABASES = {
                'default': {
                    'ENGINE': 'django.db.backends.sqlite3',
                    'NAME': os.path.join(self.DIRNAME, 'database.db'),
                    'USER': '',
                    'PASSWORD': '',
                    'HOST': '',
                    'PORT': '',
                }
            },
            MIDDLEWARE_CLASSES = (
                'django.contrib.sessions.middleware.SessionMiddleware',
                'django.middleware.common.CommonMiddleware',
                'django.middleware.csrf.CsrfViewMiddleware',
                'django.contrib.auth.middleware.AuthenticationMiddleware',
                'django.contrib.messages.middleware.MessageMiddleware',
            ),
            INSTALLED_APPS = self.INSTALLED_APPS + self.apps
        )
        # Setup is needed for Django >= 1.7
        import django
        if hasattr(django, 'setup'):
            django.setup()
        try:
            from django.test.runner import DiscoverRunner
            failures = DiscoverRunner().run_tests(self.apps, verbosity=1)
        except __HOLE__:
            # DjangoTestSuiteRunner has been deprecated in Django 1.7
            from django.test.simple import DjangoTestSuiteRunner
            failures = DjangoTestSuiteRunner().run_tests(self.apps, verbosity=1)
        if failures: # pragma: no cover
            sys.exit(failures)
dataset/ETHPy150Open makinacorpus/django-safedelete/quicktest.py/QuickDjangoTest.run_tests