Searched refs:attach_mock (Results 1 – 6 of 6) sorted by relevance
/third_party/python/Lib/unittest/test/testmock/ |
D | testmock.py | 1861 manager.attach_mock(mock_one, 'one') 1862 manager.attach_mock(mock_two, 'two') 1984 m.attach_mock(m2, 'bar') 2001 m.attach_mock(m2, 'return_value') 2015 parent.attach_mock(mock_func, 'child') 2033 manager.attach_mock(mocked, 'attach_meth') 2042 manager.attach_mock(mocked, 'attach_func') 2050 manager.attach_mock(mocked, 'attach_obj') 2149 parent.attach_mock(create_autospec(foo, name='bar'), 'child')
|
/third_party/python/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 | 432 .. method:: attach_mock(mock, attribute) 1295 attach mocks that have names to a parent you use the :meth:`~Mock.attach_mock` 1303 ... parent.attach_mock(child1, 'child1') 1304 ... parent.attach_mock(child2, 'child2') 2406 'attach_mock',
|
/third_party/python/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.
|
/third_party/python/Lib/unittest/ |
D | mock.py | 465 def attach_mock(self, mock, attribute): member in NonCallableMock
|