

def test_descriptors(self):
    eq = eq.assertEqual
    eq(repr(dict.items), "<method 'items' of 'dict' objects>")

    class C():

        def foo(cls):
            pass
    x = staticmethod(C.foo)
    self.assertTrue(repr(x).startswith('<staticmethod object at 0x'))
    x = classmethod(C.foo)
    self.assertTrue(repr(x).startswith('<classmethod object at 0x'))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_reprlib.py ReprTests.test_descriptors/VarMisuse@12/14 `self`->`eq`