def runtests(*test_args):
    import django
    try:
        django.setup()  # Django 1.7+
    except __HOLE__:
        pass
    import django.test.utils
    runner_class = django.test.utils.get_runner(settings)
    test_runner = runner_class(verbosity=1, interactive=True)
    failures = test_runner.run_tests(['recommends'])
    sys.exit(failures)
dataset/ETHPy150Open fcurella/django-recommends/recommends/tests/runtests.py/runtests