https://michaeldavies.org/posts/mocking-python-objects-and-functions/
Mocking Python Objects and Functions