def testReturnDefaults(self): #{{{ '''Return default name/value mapping only''' def _(a, b, c=1, d=2, e=3): #{{{ pass # End def #}}} ret = cargval(_) self.assertTrue(ret) self.assertTrue(isinstance(ret, dict)) self.assertEqual(ret, {'c': 1, 'd': 2, 'e': 3})
def testNonCallable(self): #{{{ '''Non-callable returns None''' self.assertTrue(cargval(1) is None)