Home
last modified time | relevance | path

Searched refs:NonCallableMock (Results 1 – 13 of 13) sorted by relevance

/external/chromium-trace/catapult/devil/devil/android/
Dmd5sum_test.py93 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()
Ddevice_utils_test.py2844 blacklist = mock.NonCallableMock(**{'Read.return_value': []})
2857 blacklist = mock.NonCallableMock(
/external/python/mock/mock/tests/
Dtestcallable.py10 NonCallableMock, patch, create_autospec,
24 for mock in NonCallableMagicMock(), NonCallableMock():
32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock))
36 one = NonCallableMock()
Dtestmock.py16 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()):
Dtestpatch.py15 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/
Dtestcallable.py10 NonCallableMock, patch, create_autospec,
24 for mock in NonCallableMagicMock(), NonCallableMock():
32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock))
36 one = NonCallableMock()
Dtestmock.py10 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()):
Dtestpatch.py14 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/
Dmock.py54 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/
Dmock.py131 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.py54 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/
Dmock.py150 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/
Dunittest.mock.rst196 :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