Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py1824 manager.attach_mock(mock_one, 'one')
1825 manager.attach_mock(mock_two, 'two')
1947 m.attach_mock(m2, 'bar')
1964 m.attach_mock(m2, 'return_value')
1978 parent.attach_mock(mock_func, 'child')
1996 manager.attach_mock(mocked, 'attach_meth')
2005 manager.attach_mock(mocked, 'attach_func')
2013 manager.attach_mock(mocked, 'attach_obj')
2112 parent.attach_mock(create_autospec(foo, name='bar'), 'child')
/external/python/mock/mock/tests/
Dtestmock.py1730 manager.attach_mock(mock_one, 'one')
1731 manager.attach_mock(mock_two, 'two')
1837 m.attach_mock(m2, 'bar')
1854 m.attach_mock(m2, 'return_value')
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst1199 them to a manager mock using the :meth:`~Mock.attach_mock` method. After
1205 ... manager.attach_mock(MockClass1, 'MockClass1')
1206 ... manager.attach_mock(MockClass2, 'MockClass2')
Dunittest.mock.rst431 .. method:: attach_mock(mock, attribute)
1294 attach mocks that have names to a parent you use the :meth:`~Mock.attach_mock`
1302 ... parent.attach_mock(child1, 'child1')
1303 ... parent.attach_mock(child2, 'child2')
2405 'attach_mock',
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a3.rst747 :func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan.
D3.9.0a1.rst2607 :func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan.
/external/python/cpython2/Lib/test/
D_mock_backport.py424 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/pdfium/third_party/pymock/
Dmock.py518 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/python/mock/mock/
Dmock.py533 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/python/cpython3/Lib/unittest/
Dmock.py461 def attach_mock(self, mock, attribute): member in NonCallableMock