Back to index

python3.2  3.2.2
Public Member Functions
test.test_iterlen.TestInvariantWithoutMutations Class Reference
Inheritance diagram for test.test_iterlen.TestInvariantWithoutMutations:
Inheritance graph

List of all members.

Public Member Functions

def test_invariant

Detailed Description

Definition at line 63 of file

Member Function Documentation

Definition at line 65 of file

00066     def test_invariant(self):
00067         it =
00068         for i in reversed(range(1, n+1)):
00069             self.assertEqual(len(it), i)
00070             next(it)
00071         self.assertEqual(len(it), 0)
00072         self.assertRaises(StopIteration, next, it)
00073         self.assertEqual(len(it), 0)

Here is the call graph for this function:

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