PATH:
usr
/
lib64
/
python2.7
/
unittest
/
test
import os import sys import unittest here = os.path.dirname(__file__) loader = unittest.defaultTestLoader def suite(): suite = unittest.TestSuite() for fn in os.listdir(here): if fn.startswith("test") and fn.endswith(".py"): modname = "unittest.test." + fn[:-3] __import__(modname) module = sys.modules[modname] suite.addTest(loader.loadTestsFromModule(module)) return suite if __name__ == "__main__": unittest.main(defaultTest="suite")
[-] test_loader.pyo
[edit]
[-] test_discovery.pyc
[edit]
[-] test_discovery.py
[edit]
[-] test_result.pyo
[edit]
[-] __init__.pyo
[edit]
[-] test_loader.pyc
[edit]
[-] dummy.py
[edit]
[-] test_program.pyo
[edit]
[-] test_skipping.py
[edit]
[-] test_functiontestcase.py
[edit]
[-] support.pyc
[edit]
[+]
..
[-] support.pyo
[edit]
[-] test_setups.pyo
[edit]
[-] __init__.pyc
[edit]
[-] test_suite.py
[edit]
[-] test_functiontestcase.pyc
[edit]
[-] test_case.pyo
[edit]
[-] test_setups.pyc
[edit]
[-] support.py
[edit]
[-] test_assertions.pyo
[edit]
[-] test_break.pyo
[edit]
[-] test_setups.py
[edit]
[-] test_case.pyc
[edit]
[-] test_assertions.py
[edit]
[-] test_skipping.pyo
[edit]
[-] test_result.pyc
[edit]
[-] test_runner.py
[edit]
[-] test_loader.py
[edit]
[-] test_runner.pyc
[edit]
[-] test_discovery.pyo
[edit]
[-] test_suite.pyo
[edit]
[-] test_suite.pyc
[edit]
[-] dummy.pyo
[edit]
[-] test_case.py
[edit]
[-] test_functiontestcase.pyo
[edit]
[-] test_runner.pyo
[edit]
[-] __init__.py
[edit]
[-] test_program.py
[edit]
[-] test_assertions.pyc
[edit]
[-] test_break.py
[edit]
[-] test_program.pyc
[edit]
[-] dummy.pyc
[edit]
[-] test_break.pyc
[edit]
[-] test_skipping.pyc
[edit]
[-] test_result.py
[edit]