module documentation

Tests for miscellaneous behaviors of the top-level twisted package (ie, for the code in twisted/__init__.py.

Class MakePackagesTests Tests for _makePackages, a helper for populating sys.modules with fictional modules.
Class SetAsideModule SetAsideModule is a context manager for temporarily removing a module from sys.modules.
Function _install No summary
Function _makePackages Construct module objects (for either modules or packages).
def _install(modules): (source)
def _makePackages(parent, attributes, result): (source)

Construct module objects (for either modules or packages).

Parameters
parentNone or a module object which is the Python package containing all of the modules being created by this function call. Its name will be prepended to the name of all created modules.
attributesA mapping giving the attributes of the particular module object this call is creating.
resultA mapping which is populated with all created module names. This is suitable for use in updating sys.modules.
Returns
A mapping of all of the attributes created by this call. This is suitable for populating the dictionary of parent.
See Also
_install.