A mock object is meant to simulate any API for the purposes of testing. The python standard library includes MagicMock . »> from unittes…

» pythondoeswhat.com | pythondoeswhat.com