Fudge is a Python module for using fake objects (mocks, stubs, etc) to test real ones.
$ hg clone http://bitbucket.org/kumar303/fudge/
$ hg clone ssh://hg@bitbucket.org/kumar303/fudge/