Home
last modified time | relevance | path

Searched refs:_callable (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py8 Mock, ANY, _CallList, patch, PropertyMock, _callable
1095 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))
/external/python/mock/mock/tests/
Dtesthelpers.py16 from mock.mock import _Call, _CallList, _callable
1155 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))
/external/pdfium/third_party/pymock/
Dmock.py201 if not _callable(func):
229 def _callable(obj): function
265 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):
/external/python/mock/mock/
Dmock.py218 def _callable(obj): function
222 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):
/external/python/cpython2/Lib/test/
D_mock_backport.py140 def _callable(obj): function
173 if not _callable(original):
875 if _callable(obj):
968 if not _callable(effect):
2127 elif not _callable(spec):
/external/python/cpython3/Lib/unittest/
Dmock.py138 def _callable(obj): function
142 return _callable(obj.__func__)
1059 if _callable(obj):
1153 elif not _callable(effect):
2155 elif not _callable(effect):
2616 elif not _callable(spec):
/external/python/cpython2/Lib/
Dargparse.py95 def _callable(obj): function
1296 if not _callable(action_class):
1302 if not _callable(type_func):
2258 if not _callable(type_func):
/external/llvm-project/polly/utils/
Dargparse.py122 def _callable(obj): function
1300 if not _callable(action_class):
1306 if not _callable(type_func):
2233 if not _callable(type_func):
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1832 .. _callable-types:
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2160 .. _callable-types: