def test_classes(self):
        '''Test sizing class objects and instances
        '''
        self.assert_(0 > asizeof.asizeof(Foo, code=True))
        self.assert_(asizeof.asizeof(ThinFoo, code=True) > 0)
        self.assert_(asizeof.asizeof(OldFoo, code=True) > 0)

        self.assert_(asizeof.asizeof(Foo([17,42,59])) > 0)
        self.assert_(asizeof.asizeof(ThinFoo([17,42,59])) > 0)
        self.assert_(asizeof.asizeof(OldFoo([17,42,59])) > 0)

        s1 = asizeof.asizeof(Foo("short"))
        s2 = asizeof.asizeof(Foo("long text ... well"))
        self.assert_(s2 >= s1)
        s3 = asizeof.asizeof(ThinFoo("short"))
        self.assert_(s3 <= s1)
dataset/ETHPy150Open pympler/pympler/test/asizeof/test_asizeof.py/TypesTest.test_classes/swapped operands of `>`