Home
last modified time | relevance | path

Searched refs:NonCallableMagicMock (Results 1 – 12 of 12) sorted by relevance

/external/python/mock/mock/tests/
Dtestcallable.py9 Mock, MagicMock, NonCallableMagicMock,
19 self.assertTrue(is_instance(mock, NonCallableMagicMock))
24 for mock in NonCallableMagicMock(), NonCallableMock():
32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock))
39 two = NonCallableMagicMock()
Dtestmock.py17 NonCallableMagicMock,
975 NonCallableMagicMock()
1336 Mock, MagicMock, NonCallableMock, NonCallableMagicMock
1381 for Klass in MagicMock, NonCallableMagicMock:
1398 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock:
1520 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1537 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1553 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1576 for Klass in (MagicMock, Mock, Subclass, NonCallableMagicMock):
Dtestpatch.py16 MagicMock, Mock, NonCallableMagicMock, patch,
90 MockClass = NonCallableMagicMock
1060 patcher = patch(foo_name, new_callable=NonCallableMagicMock)
1073 patcher = patch.object(Foo, 'f', new_callable=NonCallableMagicMock)
1161 NonCallableMock, NonCallableMagicMock, MagicMock, Mock, MockSub
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestcallable.py9 Mock, MagicMock, NonCallableMagicMock,
19 self.assertTrue(is_instance(mock, NonCallableMagicMock))
24 for mock in NonCallableMagicMock(), NonCallableMock():
32 self.assertTrue(issubclass(NonCallableMagicMock, NonCallableMock))
39 two = NonCallableMagicMock()
Dtestmock.py11 NonCallableMagicMock, _Call, _CallList,
1114 NonCallableMagicMock()
1491 Mock, MagicMock, NonCallableMock, NonCallableMagicMock
1536 for Klass in MagicMock, NonCallableMagicMock:
1553 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock:
1697 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1714 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1730 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1744 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1762 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
Dtestpatch.py15 MagicMock, Mock, NonCallableMagicMock, patch, _patch,
86 MockClass = NonCallableMagicMock
1079 patcher = patch(foo_name, new_callable=NonCallableMagicMock)
1092 patcher = patch.object(Foo, 'f', new_callable=NonCallableMagicMock)
1180 NonCallableMock, NonCallableMagicMock, MagicMock, Mock, MockSub
/external/pdfium/third_party/pymock/
Dmock.py905 if issubclass(_type, NonCallableMagicMock):
1305 Klass = NonCallableMagicMock
1328 Klass = NonCallableMagicMock
1877 class NonCallableMagicMock(MagicMixin, NonCallableMock): class
2176 Klass = NonCallableMagicMock
2178 Klass = NonCallableMagicMock
/external/python/cpython2/Lib/test/
D_mock_backport.py860 if issubclass(_type, NonCallableMagicMock):
1251 Klass = NonCallableMagicMock
1274 Klass = NonCallableMagicMock
1816 class NonCallableMagicMock(MagicMixin, NonCallableMock): class
2128 Klass = NonCallableMagicMock
2130 Klass = NonCallableMagicMock
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_squeezer.py7 from unittest.mock import Mock, NonCallableMagicMock, patch, sentinel, ANY
93 editwin = NonCallableMagicMock()
/external/python/cpython3/Lib/unittest/
Dmock.py904 if issubclass(_type, NonCallableMagicMock):
1305 Klass = NonCallableMagicMock
1328 Klass = NonCallableMagicMock
1882 class NonCallableMagicMock(MagicMixin, NonCallableMock): class
2192 Klass = NonCallableMagicMock
2194 Klass = NonCallableMagicMock
/external/python/mock/mock/
Dmock.py1012 if issubclass(_type, NonCallableMagicMock):
1406 Klass = NonCallableMagicMock
1429 Klass = NonCallableMagicMock
1990 class NonCallableMagicMock(MagicMixin, NonCallableMock): class
2308 Klass = NonCallableMagicMock
2310 Klass = NonCallableMagicMock
/external/python/cpython3/Doc/library/
Dunittest.mock.rst196 :class:`NonCallableMock` and :class:`NonCallableMagicMock`
1727 There are two ``MagicMock`` variants: :class:`MagicMock` and :class:`NonCallableMagicMock`.
1742 .. class:: NonCallableMagicMock(*args, **kw)
2280 <NonCallableMagicMock name='request.Request()' spec='Request' id='...'>
2304 <NonCallableMagicMock name='mock.Request()' spec='Request' id='...'>
2399 <NonCallableMagicMock name='Something.a' spec='int' id='...'>