Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
doctest.Example Class Reference

List of all members.

Public Member Functions

def __init__

Public Attributes

 source
 want
 lineno
 indent
 options
 exc_msg

Detailed Description

  1. Example & DocTest

Definition at line 390 of file doctest.py.


Constructor & Destructor Documentation

def doctest.Example.__init__ (   self,
  source,
  want,
  exc_msg = None,
  lineno = 0,
  indent = 0,
  options = None 
)

Definition at line 426 of file doctest.py.

00426 
00427                  options=None):
00428         # Normalize inputs.
00429         if not source.endswith('\n'):
00430             source += '\n'
00431         if want and not want.endswith('\n'):
00432             want += '\n'
00433         if exc_msg is not None and not exc_msg.endswith('\n'):
00434             exc_msg += '\n'
00435         # Store properties.
00436         self.source = source
00437         self.want = want
00438         self.lineno = lineno
00439         self.indent = indent
00440         if options is None: options = {}
00441         self.options = options
00442         self.exc_msg = exc_msg

Here is the caller graph for this function:


Member Data Documentation

Definition at line 441 of file doctest.py.

Definition at line 438 of file doctest.py.

Definition at line 437 of file doctest.py.

Definition at line 440 of file doctest.py.

Definition at line 435 of file doctest.py.

Definition at line 436 of file doctest.py.


The documentation for this class was generated from the following file: