

def get_test_modules():
    modules = []
    for (loc, dirpath) in ((MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR), (CONTRIB_DIR_NAME, CONTRIB_DIR)):
        for f in os.listdir(dirpath):
            if (f.startswith('__init__') or f.startswith('.') or (f == '__pycache__') or f.startswith('sql') or (os.path.basename(f) in REGRESSION_SUBDIRS_TO_SKIP)):
                continue
            modules.append((loc, f))
    return modules

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/runtests.py get_test_modules/original