Searched refs:NonCallableMock (Results 1 – 13 of 13) sorted by relevance
/external/chromium-trace/catapult/devil/devil/android/ |
D | md5sum_test.py | 93 device = mock.NonCallableMock() 102 device = mock.NonCallableMock() 120 device = mock.NonCallableMock() 144 device = mock.NonCallableMock() 168 device = mock.NonCallableMock() 189 device = mock.NonCallableMock() 209 device = mock.NonCallableMock() 210 device.adb = mock.NonCallableMock()
|
D | device_utils_test.py | 2844 blacklist = mock.NonCallableMock(**{'Read.return_value': []}) 2857 blacklist = 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 | 16 MagicMock, Mock, NonCallableMock, 821 mock = NonCallableMock() 974 NonCallableMock(), 1336 Mock, MagicMock, NonCallableMock, NonCallableMagicMock 1398 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock: 1520 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1537 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1554 NonCallableMock()):
|
D | testpatch.py | 15 NonCallableMock, CallableMixin, patch, sentinel, 92 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/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 | 10 MagicMock, Mock, NonCallableMock, 909 mock = NonCallableMock() 1113 NonCallableMock(), 1491 Mock, MagicMock, NonCallableMock, NonCallableMagicMock 1553 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock: 1697 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1714 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock 1731 NonCallableMock()): 1745 NonCallableMock()): 1763 NonCallableMock()):
|
D | testpatch.py | 14 NonCallableMock, CallableMixin, sentinel, 88 MockClass = NonCallableMock 1142 p = patch(non_existent_attr, new_callable=NonCallableMock) 1145 p = patch(non_existent_attr, new_callable=NonCallableMock, 1180 NonCallableMock, NonCallableMagicMock, MagicMock, Mock, MockSub
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 54 return issubclass(type(obj), NonCallableMock) 371 class NonCallableMock(Base): class 422 _safe_super(NonCallableMock, self).__init__( 906 elif issubclass(_type, NonCallableMock) : 1041 class Mock(CallableMixin, NonCallableMock): 1314 issubclass(Klass, NonCallableMock) and self.attribute): 1882 class NonCallableMagicMock(MagicMixin, NonCallableMock): 2458 if not isinstance(m, 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/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/python/mock/mock/ |
D | mock.py | 150 return issubclass(type(obj), NonCallableMock) 485 class NonCallableMock(Base): class 535 _safe_super(NonCallableMock, self).__init__( 1014 elif issubclass(_type, NonCallableMock) : 1139 class Mock(CallableMixin, NonCallableMock): 1415 issubclass(Klass, NonCallableMock) and self.attribute): 1990 class NonCallableMagicMock(MagicMixin, NonCallableMock):
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock.rst | 196 :class:`NonCallableMock` and :class:`NonCallableMagicMock` 716 .. class:: NonCallableMock(spec=None, wraps=None, name=None, spec_set=None, **kwargs) 1176 you wanted a :class:`NonCallableMock` to be used: 1179 >>> with patch('__main__.thing', new_callable=NonCallableMock) as mock_thing: 1185 TypeError: 'NonCallableMock' object is not callable
|