Trees | Index | Help |
|
---|
Package zope :: Package testing :: Module doctest :: Class DocTestParser |
|
A class used to parse strings containing doctest examples.
Method Summary | |
---|---|
Extract all doctest examples from the given string, and collect them into a DocTest object. | |
Extract all doctest examples from the given string, and return them as a list of Example objects. | |
Divide the given string into examples and intervening text, and return them as a list of alternating Examples and strings. |
Method Details |
---|
get_doctest(self, string, globs, name, filename, lineno)Extract all doctest examples from the given string, and
collect them into a
|
get_examples(self, string, name='<string>')Extract all doctest examples from the given string, and return
them as a list of The optional argument |
parse(self, string, name='<string>')Divide the given string into examples and intervening text,
and return them as a list of alternating Examples and strings.
Line numbers for the Examples are 0-based. The optional
argument |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:21 2005 | http://epydoc.sf.net |