Home
last modified time | relevance | path

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

/external/python/mock/mock/tests/
Dtestmock.py1443 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/
Dtestmock.py1598 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/
Dunittest.mock-examples.rst1143 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')
Dunittest.mock.rst407 .. 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/
Dmock.py518 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/python/cpython2/Lib/test/
D_mock_backport.py424 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/python/cpython3/Lib/unittest/
Dmock.py428 def attach_mock(self, mock, attribute): member in NonCallableMock
/external/python/mock/mock/
Dmock.py541 def attach_mock(self, mock, attribute): member in NonCallableMock