
Previously, there wasn't a common method for managing the creation of mocks, which resulted in multiple files having their own logic for that. In 1 and 2, the _mock_object was updated in order to create the functionality and this commit updates dcmanager code to use it. Test plan: 1. PASS: Run tox -c distributedcloud/tox.ini -e py39 multiple times and verify that there isn't any test failures. Story: 2007082 Task: 51466 [1] https://review.opendev.org/c/starlingx/distcloud/+/934254 [2] https://review.opendev.org/c/starlingx/distcloud/+/937209 Change-Id: I821e6e9add88e8e3bd74c18ef834019b740c49c6 Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com>