Mox is an open source mock object framework for Python.
https://github.com/ivancrneto/pymox.git
0.7.7