Searched refs:NonCallableMock (Results 1 – 14 of 14) sorted by relevance
/external/chromium-trace/catapult/devil/devil/android/ |
D | md5sum_test.py | 69 device = mock.NonCallableMock() 78 device = mock.NonCallableMock() 95 device = mock.NonCallableMock() 117 device = mock.NonCallableMock() 139 device = mock.NonCallableMock() 161 device = mock.NonCallableMock() 180 device = mock.NonCallableMock() 181 device.adb = mock.NonCallableMock()
|
D | device_utils_test.py | 3394 denylist = mock.NonCallableMock(**{'Read.return_value': []}) 3406 denylist = mock.NonCallableMock(
|
/external/python/mock/mock/tests/ |
D | testcallable.py | 10 NonCallableMock, patch, create_autospec, 24 for mock in NonCallableMagicMock(), NonCallableMock(): 32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock)) 36 one = NonCallableMock()
|
D | testmock.py | 17 MagicMock, Mock, NonCallableMock, 995 mock = NonCallableMock() 1212 NonCallableMock(), 1623 Mock, MagicMock, NonCallableMock, NonCallableMagicMock 1685 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock: 1831 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1848 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1865 NonCallableMock()): 1879 NonCallableMock()): 1897 NonCallableMock()): [all …]
|
D | testpatch.py | 15 NonCallableMock, CallableMixin, patch, sentinel, 93 MockClass = NonCallableMock 1113 p = patch(non_existent_attr, new_callable=NonCallableMock) 1116 p = patch(non_existent_attr, new_callable=NonCallableMock, 1151 NonCallableMock, NonCallableMagicMock, MagicMock, Mock, MockSub
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testcallable.py | 10 NonCallableMock, patch, create_autospec, 24 for mock in NonCallableMagicMock(), NonCallableMock(): 32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock)) 36 one = NonCallableMock()
|
D | testmock.py | 12 MagicMock, Mock, NonCallableMock, 1002 mock = NonCallableMock() 1219 NonCallableMock(), 1716 Mock, MagicMock, NonCallableMock, NonCallableMagicMock 1778 for Klass in (NonCallableMock, Mock, MagicMock, NonCallableMagicMock, 1941 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1958 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 2024 NonCallableMock()): 2038 NonCallableMock()): 2056 NonCallableMock()): [all …]
|
D | testpatch.py | 15 NonCallableMock, CallableMixin, sentinel, 90 MockClass = NonCallableMock 1123 p = patch(non_existent_attr, new_callable=NonCallableMock) 1126 p = patch(non_existent_attr, new_callable=NonCallableMock, 1161 NonCallableMock, NonCallableMagicMock, MagicMock, Mock, MockSub
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 65 return issubclass(type(obj), NonCallableMock) 397 class NonCallableMock(Base): class 412 instance = _safe_super(NonCallableMock, cls).__new__(new) 455 _safe_super(NonCallableMock, self).__init__( 779 _safe_super(NonCallableMock, self).__delattr__(name) 1009 elif issubclass(_type, NonCallableMock): 1035 _MOCK_SIG = inspect.signature(NonCallableMock.__init__) 1173 class Mock(CallableMixin, NonCallableMock): 1455 issubclass(Klass, NonCallableMock) and self.attribute): 2063 class NonCallableMagicMock(MagicMixin, NonCallableMock): [all …]
|
/external/python/mock/mock/ |
D | mock.py | 133 return issubclass(type(obj), NonCallableMock) 476 class NonCallableMock(Base): class 527 _safe_super(NonCallableMock, self).__init__( 847 _safe_super(NonCallableMock, self).__delattr__(name) 1025 elif issubclass(_type, NonCallableMock) : 1164 class Mock(CallableMixin, NonCallableMock): 1440 issubclass(Klass, NonCallableMock) and self.attribute): 2024 class NonCallableMagicMock(MagicMixin, NonCallableMock): 2616 if not isinstance(m, NonCallableMock):
|
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 54 return issubclass(type(obj), NonCallableMock) 368 class NonCallableMock(Base): class 418 _safe_super(NonCallableMock, self).__init__( 862 elif issubclass(_type, NonCallableMock) : 987 class Mock(CallableMixin, NonCallableMock): 1260 issubclass(Klass, NonCallableMock) and self.attribute): 1816 class NonCallableMagicMock(MagicMixin, NonCallableMock):
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 131 return issubclass(type(obj), NonCallableMock) 465 class NonCallableMock(Base): class 512 _super(NonCallableMock, self).__init__( 907 elif issubclass(_type, NonCallableMock) : 1031 class Mock(CallableMixin, NonCallableMock): 1314 issubclass(Klass, NonCallableMock) and self.attribute): 1877 class NonCallableMagicMock(MagicMixin, NonCallableMock):
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock.rst | 220 :class:`NonCallableMock` and :class:`NonCallableMagicMock` 752 .. class:: NonCallableMock(spec=None, wraps=None, name=None, spec_set=None, **kwargs) 1456 you wanted a :class:`NonCallableMock` to be used:: 1459 >>> with patch('__main__.thing', new_callable=NonCallableMock) as mock_thing: 1465 TypeError: 'NonCallableMock' object is not callable
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0a1.rst | 2527 Fix `NonCallableMock._call_matcher` returning tuple instead of `_Call`
|