The SharedMock object has an interface similar to Python’s own
unittest.mock.Mock. The main difference is that the state of a
SharedMock object is shared among subprocesses. This allows you to
easily test interactions of subprocesses with your mock instance.
If the SharedMock were to be replaced by a unittest.mock.Mock in
the example above, the assertion would fail. The interaction with the
unittest.mock.Mock object would not get propagated to your test