Back to index

python3.2  3.2.2
Public Member Functions
test.test_reprlib.TestRecursiveRepr Class Reference

List of all members.

Public Member Functions

def test_recursive_repr

Detailed Description

Definition at line 320 of file test_reprlib.py.


Member Function Documentation

Definition at line 321 of file test_reprlib.py.

00321 
00322     def test_recursive_repr(self):
00323         m = MyContainer(list('abcde'))
00324         m.append(m)
00325         m.append('x')
00326         m.append(m)
00327         self.assertEqual(repr(m), '<a, b, c, d, e, ..., x, ...>')
00328         m = MyContainer2(list('abcde'))
00329         m.append(m)
00330         m.append('x')
00331         m.append(m)
00332         self.assertEqual(repr(m), '<a, b, c, d, e, +++, x, +++>')

Here is the call graph for this function:


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