Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_doctest._FakeInput Class Reference

Fake stdin (for testing interactive debugging) More...

List of all members.

Public Member Functions

def __init__
def readline

Public Attributes

 lines

Detailed Description

Fake stdin (for testing interactive debugging)

A fake input stream for pdb's interactive debugger.  Whenever a
line is read, print it (to simulate the user typing it), and then
return it.  The set of lines to return is specified in the
constructor; they should not have trailing newlines.

Definition at line 138 of file test_doctest.py.


Constructor & Destructor Documentation

def test.test_doctest._FakeInput.__init__ (   self,
  lines 
)

Definition at line 145 of file test_doctest.py.

00145 
00146     def __init__(self, lines):
00147         self.lines = lines

Here is the caller graph for this function:


Member Function Documentation

Definition at line 148 of file test_doctest.py.

00148 
00149     def readline(self):
00150         line = self.lines.pop(0)
00151         print(line)
00152         return line+'\n'

Here is the caller graph for this function:


Member Data Documentation

Definition at line 146 of file test_doctest.py.


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