def test_traverse(self):
        touched = []
        def remember(o, touched):
            touched.append(o)

        s = [['row1', 1, 2], ['row2', 3, 4], ['row3', 5, 6]]
        summary._traverse(s, remember, touched)

        self.assert_(s in touched)
        for row in s:
            self.assert_(row in touched)
            for item in row:
                self.assert_(item in touched)
Test that all objects of a summary are traversed.
dataset/ETHPy150Open pympler/pympler/test/muppy/test_summary.py/SummaryTest.test_traverse