Back to index

python3.2  3.2.2
Namespaces | Functions | Variables
unittest.test Namespace Reference

Namespaces

namespace  _test_warnings
namespace  dummy
namespace  support
namespace  test_assertions
namespace  test_break
namespace  test_case
namespace  test_discovery
namespace  test_functiontestcase
namespace  test_loader
namespace  test_program
namespace  test_result
namespace  test_runner
namespace  test_setups
namespace  test_skipping
namespace  test_suite

Functions

def suite

Variables

tuple here = os.path.dirname(__file__)
 loader = unittest.defaultTestLoader

Function Documentation

Definition at line 9 of file __init__.py.

00009 
00010 def suite():
00011     suite = unittest.TestSuite()
00012     for fn in os.listdir(here):
00013         if fn.startswith("test") and fn.endswith(".py"):
00014             modname = "unittest.test." + fn[:-3]
00015             __import__(modname)
00016             module = sys.modules[modname]
00017             suite.addTest(loader.loadTestsFromModule(module))
00018     return suite
00019 

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

tuple unittest.test.here = os.path.dirname(__file__)

Definition at line 6 of file __init__.py.

unittest.test.loader = unittest.defaultTestLoader

Definition at line 7 of file __init__.py.