X7ROOT File Manager
Current Path:
/usr/lib64/python2.7/unittest/test
usr
/
lib64
/
python2.7
/
unittest
/
test
/
📁
..
📄
__init__.py
(514 B)
📄
__init__.pyc
(906 B)
📄
__init__.pyo
(906 B)
📄
dummy.py
(50 B)
📄
dummy.pyc
(130 B)
📄
dummy.pyo
(130 B)
📄
support.py
(3.39 KB)
📄
support.pyc
(5.86 KB)
📄
support.pyo
(5.86 KB)
📄
test_assertions.py
(11.51 KB)
📄
test_assertions.pyc
(13.06 KB)
📄
test_assertions.pyo
(13.06 KB)
📄
test_break.py
(9.42 KB)
📄
test_break.pyc
(9.91 KB)
📄
test_break.pyo
(9.91 KB)
📄
test_case.py
(42.79 KB)
📄
test_case.pyc
(43.78 KB)
📄
test_case.pyo
(43.78 KB)
📄
test_discovery.py
(13.24 KB)
📄
test_discovery.pyc
(16.18 KB)
📄
test_discovery.pyo
(16.18 KB)
📄
test_functiontestcase.py
(5.4 KB)
📄
test_functiontestcase.pyc
(5.94 KB)
📄
test_functiontestcase.pyo
(5.94 KB)
📄
test_loader.py
(48.05 KB)
📄
test_loader.pyc
(47.9 KB)
📄
test_loader.pyo
(47.9 KB)
📄
test_program.py
(7.38 KB)
📄
test_program.pyc
(10.23 KB)
📄
test_program.pyo
(10.18 KB)
📄
test_result.py
(18.62 KB)
📄
test_result.pyc
(20.9 KB)
📄
test_result.pyo
(20.9 KB)
📄
test_runner.py
(8.36 KB)
📄
test_runner.pyc
(13.78 KB)
📄
test_runner.pyo
(13.78 KB)
📄
test_setups.py
(16.07 KB)
📄
test_setups.pyc
(28.55 KB)
📄
test_setups.pyo
(28.55 KB)
📄
test_skipping.py
(5.6 KB)
📄
test_skipping.pyc
(9.37 KB)
📄
test_skipping.pyo
(9.37 KB)
📄
test_suite.py
(11.79 KB)
📄
test_suite.pyc
(15.13 KB)
📄
test_suite.pyo
(15.13 KB)
Editing: __init__.py
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")
Upload File
Create Folder