def testNormalFunctions(self): #{{{ '''Normal function or unbound method''' _ = lambda: None ub = method(_, None, None) for f in (_, ub): cw = CallableWrapper(f) self.assertFalse(cw._get_ismethod())
def testBoundInstanceMethods(self): #{{{ '''Bound or instance methods''' class _(object): #{{{ def me(self): #{{{ pass # End def #}}} # End class #}}} t = _() for f in (_.me, t.me): cw = CallableWrapper(f) self.assertTrue(cw._get_ismethod())