If you want to mock a method, you should use [the `mock` library](http://www.voidspace.org.uk/python/mock/). It's much clearer, better tested, and easier to understand. I'd be happy to help you understand how to use it, if you'd like.