def runtests(*test_args):
    if not test_args:
        test_args = ['django_mailbox']
    parent = dirname(abspath(__file__))
    sys.path.insert(0, parent)
    try:
        # ensure that AppRegistry has loaded
        setup()
    except __HOLE__:
        # This version of Django is too old for an app registry.
        pass
    runner = TestRunner(
        verbosity=1,
        interactive=False,
        failfast=False
    )
    failures = runner.run_tests(test_args)
    sys.exit(failures)
dataset/ETHPy150Open coddingtonbear/django-mailbox/django_mailbox/runtests.py/runtests