mock object library (part of the Python Standard Library)
unittest.mock
allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.
It provides a core Mock
class removing the need to create a host of stubs throughout your test suite.