def test_summarize(self):
        objects = [1, 'a', 'b', 'a', 5, [], {}]
        expected = [[summary._repr(''), 3, 3*_getsizeof('a')],\
                    [summary._repr(1), 2, 2*_getsizeof(1)],\
                    [summary._repr([]), 1, _getsizeof([])],\
                    [summary._repr({}), 1, _getsizeof({})]]
        res = summary.summarize(objects)
        for row_e in res:
            self.assert_(row_e in expected)
Test summarize method.
dataset/ETHPy150Open pympler/pympler/test/muppy/test_summary.py/SummaryTest.test_summarize