Mocking python code with magickmock.

The objective of mocking an object, a function call or a entirely class is to convert it runtime behavior, to some behavior that we can define during the test implementation. In other words, we substitute the original implementation by a Mock...