python-spymock (pypi): SpyMock is similar to MagicMock but recording function returns values and exceptions
Keywords: mock|python|spy