Searched refs:attach_mock (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmock.py | 1824 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/ |
D | testmock.py | 1730 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/ |
D | unittest.mock-examples.rst | 1199 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')
|
D | unittest.mock.rst | 431 .. 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/ |
D | 3.9.0a3.rst | 747 :func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan.
|
D | 3.9.0a1.rst | 2607 :func:`unittest.mock.attach_mock`. Patch by Karthikeyan Singaravelan.
|
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 424 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 518 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/python/mock/mock/ |
D | mock.py | 533 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 461 def attach_mock(self, mock, attribute): member in NonCallableMock
|