Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub BinOpBitOr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass TryExcept body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return NameLoad decorator_list decorator_list
N/A N/A logging N/A os N/A argparse six.moves configparser nose2 config events util N/A log N/A N/A logging getLogger __name__ N/A __unittest True Session N/A object N/A N/A Configuration session.

    Encapsulates all configuration for a given test run.

    .. attribute :: argparse

       An instance of :class:`argparse.ArgumentParser`. Plugins can
       use this directly to add arguments and argument groups, but
       *must* do so in their ``__init__`` methods.

    .. attribute :: pluginargs

       The argparse argument group in which plugins (by default) place
       their command-line arguments. Plugins can use this directly to
       add arguments, but *must* do so in their ``__init__`` methods.

    .. attribute :: hooks

       The :class:`nose2.events.PluginInterface` instance contains
       all available plugin methods and hooks.

    .. attribute :: plugins

       The list of loaded -- but not necessarily *active* -- plugins.

    .. attribute :: verbosity

       Current verbosity level. Default: 1.

    .. attribute :: startDir

       Start directory of test run. Test discovery starts
       here. Default: current working directory.

    .. attribute :: topLevelDir

       Top-level directory of test run. This directory is added to
       sys.path. Default: starting directory.

    .. attribute :: libDirs

       Names of code directories, relative to starting
       directory. Default: ['lib', 'src']. These directories are added
       to sys.path and discovery if the exist.

    .. attribute :: testFilePattern

       Pattern used to discover test module files. Default: test*.py

    .. attribute :: testMethodPrefix

       Prefix used to discover test methods and functions: Default: 'test'.

    .. attribute :: unittest

       The config section for nose2 itself.

     N/A configClass N/A config Config __init__ N/A N/A self N/A N/A N/A N/A self argparse N/A N/A argparse ArgumentParser prog nose2 add_help False N/A N/A self pluginargs N/A N/A N/A self argparse add_argument_group plugin arguments Command-line arguments added by plugins: N/A N/A self config N/A N/A configparser ConfigParser N/A N/A self hooks N/A N/A events PluginInterface N/A N/A self plugins N/A N/A N/A self verbosity 1 N/A N/A self startDir None N/A N/A self topLevelDir None N/A N/A self testResult None N/A N/A self testLoader None N/A N/A self logLevel N/A logging WARN N/A get N/A N/A self section N/A N/A N/A Get a config section.

        :param section: The section name to retreive.
        :returns: instance of self.configClass.

         N/A items N/A N/A N/A N/A N/A self config has_section section N/A N/A items N/A N/A N/A self config items section N/A N/A N/A self configClass items N/A loadConfigFiles N/A N/A self N/A filenames N/A N/A Load config files.

        :param filenames: Names of config files to load.

        Loads all names files that exist into ``self.config``.

         N/A N/A N/A N/A self config read filenames N/A loadPlugins N/A N/A self modules exclude N/A None None N/A N/A Load plugins.

        :param modules: List of module names from which to load plugins.

         N/A N/A modules None N/A N/A modules N/A N/A N/A exclude None N/A N/A exclude N/A N/A cfg N/A self unittest N/A more_plugins N/A N/A cfg as_list plugins N/A N/A cfg_exclude N/A N/A cfg as_list exclude-plugins N/A N/A N/A N/A exclude extend cfg_exclude N/A exclude N/A set exclude N/A all_ N/A N/A N/A set modules N/A set more_plugins exclude N/A N/A N/A log debug Loading plugin modules: %s all_ N/A module all_ N/A N/A N/A N/A self loadPluginsFromModule N/A N/A util module_from_name module N/A N/A N/A N/A self hooks pluginsLoaded N/A N/A events PluginsLoadedEvent N/A self plugins N/A loadPluginsFromModule N/A N/A self module N/A N/A N/A Load plugins from a module.

        :param module: A python module containing zero or more plugin
                       classes.

         N/A avail N/A N/A entry N/A dir module N/A N/A N/A N/A item N/A getattr module entry N/A N/A N/A AttributeError N/A N/A N/A N/A N/A N/A issubclass item N/A events Plugin N/A N/A N/A N/A avail append item N/A N/A N/A TypeError N/A N/A N/A cls avail N/A N/A N/A N/A log debug Plugin is available: %s cls N/A plugin N/A cls session self N/A N/A N/A N/A self plugins append plugin N/A method N/A N/A self hooks preRegistrationMethods N/A N/A N/A hasattr plugin method N/A N/A N/A N/A N/A self hooks register method plugin N/A registerPlugin N/A N/A self plugin N/A N/A N/A Register a plugin.

        :param plugin: A `nose2.events.Plugin` instance.

        Register the plugin with all methods it implements.

         N/A N/A N/A log debug Register active plugin %s plugin N/A N/A plugin N/A self plugins N/A N/A N/A N/A N/A self plugins append plugin N/A method N/A N/A self hooks methods N/A N/A N/A hasattr plugin method N/A N/A N/A N/A log debug Register method %s for plugin %s method plugin N/A N/A N/A N/A self hooks register method plugin N/A setStartDir N/A N/A self N/A N/A N/A N/A N/A self startDir None N/A N/A N/A self startDir N/A N/A N/A self unittest as_str start-dir . N/A prepareSysPath N/A N/A self N/A N/A N/A Add code directories to sys.path N/A tld N/A self topLevelDir N/A sd N/A self startDir N/A N/A tld None N/A N/A tld sd N/A tld N/A N/A N/A os path abspath tld N/A N/A N/A util ensure_importable tld N/A libdir N/A self libDirs N/A N/A libdir N/A N/A N/A os path abspath N/A N/A N/A os path join tld libdir N/A N/A N/A N/A os path exists libdir N/A N/A N/A N/A util ensure_importable libdir N/A libDirs N/A N/A self N/A N/A N/A N/A N/A N/A self unittest as_list code-directories N/A lib src N/A property testFilePattern N/A N/A self N/A N/A N/A N/A N/A N/A self unittest as_str test-file-pattern test*.py N/A property testMethodPrefix N/A N/A self N/A N/A N/A N/A N/A N/A self unittest as_str test-method-prefix test N/A property unittest N/A N/A self N/A N/A N/A N/A N/A self get unittest N/A property isPluginLoaded N/A N/A self pluginName N/A N/A N/A Returns ``True`` if a given plugin is loaded.

        :param pluginName: the name of the plugin module: e.g. "nose2.plugins.layers".

         N/A plugin N/A self plugins N/A N/A N/A pluginName N/A N/A plugin __class__ __module__ N/A N/A True N/A False N/A N/A