def runtests(*test_args):
    'Setup and run django-lockdowns test suite.'
    os.environ['DJANGO_SETTINGS_MODULE'] = 'lockdown.tests.test_settings'
    django.setup()
    if (not test_args):
        test_args = ['lockdown.tests']
    test_runner = get_runner(settings)()
    failures = test_runner.run_tests(test_args)
    sys.exit(bool(failures))
Setup and run django-lockdowns test suite.
def runtests(*test_args):
    
    os.environ['DJANGO_SETTINGS_MODULE'] = 'lockdown.tests.test_settings'
    django.setup()
    if (not test_args):
        test_args = ['lockdown.tests']
    test_runner = get_runner(settings)()
    failures = test_runner.run_tests(test_args)
    sys.exit(bool(failures))