def test_refs(self):
        '''Test asizeof.refs()
        '''
        f = Foo(42)
        refs = list(asizeof.refs(f))
        self.assert_(len(refs) >= 1, len(refs))
        self.assert_({'data': 42} in refs, refs)

        f = OldFoo(42)
        refs = list(asizeof.refs(f))
        self.assert_(len(refs) >= 1, len(refs))
        self.assert_(refs in {'odata': 42}, refs)

        f = ThinFoo(42)
        refs = list(asizeof.refs(f))
        self.assert_(len(refs) >= 2, len(refs))
        self.assert_(42 in refs, refs)
        self.assert_(('tdata',) in refs, refs) # slots
dataset/ETHPy150Open pympler/pympler/test/asizeof/test_asizeof.py/FunctionTest.test_refs/swapped operands of `in`