Searched refs:_callable (Results 1 – 10 of 10) sorted by relevance
8 Mock, ANY, _CallList, patch, PropertyMock, _callable1095 self.assertTrue(_callable(obj))1101 self.assertTrue(_callable(instance))1107 self.assertTrue(_callable(WithStaticMethod.staticfunc))1112 self.assertFalse(_callable(BadStaticMethod.not_callable))1118 self.assertTrue(_callable(WithClassMethod.classfunc))1123 self.assertFalse(_callable(BadClassMethod.not_callable))
16 from mock.mock import _Call, _CallList, _callable1155 self.assertTrue(_callable(obj))1161 self.assertTrue(_callable(instance))1167 self.assertTrue(_callable(WithStaticMethod.staticfunc))1172 self.assertFalse(_callable(BadStaticMethod.not_callable))1178 self.assertTrue(_callable(WithClassMethod.classfunc))1183 self.assertFalse(_callable(BadClassMethod.not_callable))
201 if not _callable(func):229 def _callable(obj): function265 if not _callable(original):920 if _callable(obj):1012 if not _callable(effect):1303 not_callable = not _callable(this_spec)2175 elif not _callable(spec):
218 def _callable(obj): function222 return _callable(obj.__func__)1057 if _callable(obj):1144 elif not _callable(effect):1429 not_callable = not _callable(this_spec)2356 elif not _callable(spec):
140 def _callable(obj): function173 if not _callable(original):875 if _callable(obj):968 if not _callable(effect):2127 elif not _callable(spec):
138 def _callable(obj): function142 return _callable(obj.__func__)1059 if _callable(obj):1153 elif not _callable(effect):2155 elif not _callable(effect):2616 elif not _callable(spec):
95 def _callable(obj): function1296 if not _callable(action_class):1302 if not _callable(type_func):2258 if not _callable(type_func):
122 def _callable(obj): function1300 if not _callable(action_class):1306 if not _callable(type_func):2233 if not _callable(type_func):
1832 .. _callable-types:
2160 .. _callable-types: