Lines Matching refs:cmethod
758 def cmethod(self):
771 self.assertEqual(m.cmethod(), "C a")
789 self.assertEqual(m.cmethod(), "C a")
801 self.assertEqual(m.cmethod(), "C a")
2269 def Cmethod(self): pass
2271 cstuff = ['Cdata', 'Cmethod', '__doc__', '__module__']
2273 self.assertIn('im_self', dir(C.Cmethod))
2279 c.cmethod = lambda self: 0
2280 self.assertEqual(dir(c), cstuff + ['cdata', 'cmethod'])
2281 self.assertIn('im_self', dir(c.Cmethod))
2304 def Cmethod(self): pass
2306 cstuff = ['Cdata', 'Cmethod']
2311 self.assertIn('im_self', dir(C.Cmethod))
2314 c.cmethod = lambda self: 0
2315 self.assertEqual(interesting(dir(c)), cstuff + ['cdata', 'cmethod'])
2316 self.assertIn('im_self', dir(c.Cmethod))