Mimic a Python mock object library based on Mox