Lines Matching refs:cmethod
748 def cmethod(self):
761 self.assertEqual(m.cmethod(), "C a")
779 self.assertEqual(m.cmethod(), "C a")
791 self.assertEqual(m.cmethod(), "C a")
2242 def Cmethod(self): pass
2244 cstuff = ['Cdata', 'Cmethod', '__doc__', '__module__']
2246 self.assertIn('im_self', dir(C.Cmethod))
2252 c.cmethod = lambda self: 0
2253 self.assertEqual(dir(c), cstuff + ['cdata', 'cmethod'])
2254 self.assertIn('im_self', dir(c.Cmethod))
2277 def Cmethod(self): pass
2279 cstuff = ['Cdata', 'Cmethod']
2284 self.assertIn('im_self', dir(C.Cmethod))
2287 c.cmethod = lambda self: 0
2288 self.assertEqual(interesting(dir(c)), cstuff + ['cdata', 'cmethod'])
2289 self.assertIn('im_self', dir(c.Cmethod))