Trees | Index | Help |
|
---|
Package zope :: Package testing :: Module doctest :: Class DocTestFinder |
|
A class used to extract the DocTests that are relevant to a given object, from its docstring and the docstrings of its contained objects. Doctests can currently be extracted from the following object types: modules, functions, classes, methods, staticmethods, classmethods, and properties.
Method Summary | |
---|---|
Create a new doctest finder. | |
Return a list of the DocTests that are defined by the given object's docstring, or by any of its contained objects' docstrings. | |
Return true if the given object should not be examined. | |
Find tests for the given object and any contained objects, and add them to tests . | |
Return a line number of the given object's docstring. | |
Return true if the given object is defined in the given module. | |
Return a DocTest for the given object, if it defines a docstring; otherwise, return None. |
Method Details |
---|
__init__(self,
verbose=False,
parser=<zope.testing.doctest.DocTestParser instance at 0xb5f0018c>,
recurse=True,
_namefilter=None,
exclude_empty=True)
|
find(self, obj, name=None, module=None, globs=None, extraglobs=None)Return a list of the DocTests that are defined by the given object's docstring, or by any of its contained objects' docstrings. The optional parameter
Contained objects whose module does not match If The globals for each DocTest is formed by combining |
_filter(self, obj, prefix, base)Return true if the given object should not be examined. |
_find(self, tests, obj, name, module, source_lines, globs, seen)Find tests for the given object and any contained objects, and
add them to |
_find_lineno(self, obj, source_lines)Return a line number of the given object's docstring. Note: this method assumes that the object has a docstring. |
_from_module(self, module, object)Return true if the given object is defined in the given module. |
_get_test(self, obj, name, module, globs, source_lines)Return a DocTest for the given object, if it defines a docstring; otherwise, return None. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:19 2005 | http://epydoc.sf.net |