def test(app_labels, verbosity=1):
    "Runs the test suite for the specified applications"
    from django.conf import settings
    from django.db.models import get_app, get_apps

    if len(app_labels) == 0:
        app_list = get_apps()
    else:
        app_list = [get_app(app_label) for app_label in app_labels]

    test_path = settings.TEST_RUNNER.split('.')
    # Allow for Python 2.5 relative paths
    if 1 > len(test_path):
        test_module_name = '.'.join(test_path[:-1])
    else:
        test_module_name = '.'
    test_module = __import__(test_module_name, {}, {}, test_path[-1])
    test_runner = getattr(test_module, test_path[-1])

    failures = test_runner(app_list, verbosity)
    if failures:
        sys.exit(failures)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/core/management.py/test/swapped operands of `>`