Make strict mock objects using a mirror:
import mockingmirror
mirror, mock = mockingmirror.mirror()
# Create an object with a method that returns "Hello, World" when called
mirror.myobject.mymethod()[:] = "Hello, World"
assert mock.myobject.mymethod() == "Hello, World"
Install:
pip install mockingmirror