Searched refs:attach_mock (Results 1 – 8 of 8) sorted by relevance
/external/python/mock/mock/tests/ |
D | testmock.py | 1443 manager.attach_mock(mock_one, 'one') 1444 manager.attach_mock(mock_two, 'two') 1526 m.attach_mock(m2, 'bar') 1543 m.attach_mock(m2, 'return_value')
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmock.py | 1598 manager.attach_mock(mock_one, 'one') 1599 manager.attach_mock(mock_two, 'two') 1703 m.attach_mock(m2, 'bar') 1720 m.attach_mock(m2, 'return_value')
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock-examples.rst | 1143 them to a manager mock using the :meth:`~Mock.attach_mock` method. After 1149 ... manager.attach_mock(MockClass1, 'MockClass1') 1150 ... manager.attach_mock(MockClass2, 'MockClass2')
|
D | unittest.mock.rst | 407 .. method:: attach_mock(mock, attribute) 1016 attach mocks that have names to a parent you use the :meth:`~Mock.attach_mock` 1024 ... parent.attach_mock(child1, 'child1') 1025 ... parent.attach_mock(child2, 'child2') 2069 'attach_mock',
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 518 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 424 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 428 def attach_mock(self, mock, attribute): member in NonCallableMock
|
/external/python/mock/mock/ |
D | mock.py | 541 def attach_mock(self, mock, attribute): member in NonCallableMock
|