PyDocs

Nav

Development Tools

Mock.attach_mock

  • Mock.attach_mock(mock, attribute)
Attach a mock as an attribute of this one, replacing its name and
parent. Calls to the attached mock will be recorded in the
`method_calls` and `mock_calls` attributes of this one.
0 Examples
No examples for unittest.mock/Mock.attach_mock.
See Also
No see-alsos for unittest.mock/Mock.attach_mock
0 Notes
No notes for Mock.attach_mock