3.4.2.12. sphinx.ext.doctest.TestoutputDirective

class sphinx.ext.doctest.TestoutputDirective(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine)[source]

3.4.2.12.1. Methods

__init__(name, arguments, options, content, ...)
add_name(node) Append self.options[‘name’] to node[‘names’] if it exists.
assert_has_content() Throw an ERROR-level DirectiveError if the directive doesn’t have contents.
debug(message)
directive_error(level, message) Return a DirectiveError suitable for being thrown as an exception.
error(message)
info(message)
run()
severe(message)
warning(message)