Michael Foord’s Mock

Dec 4, 2007 13:22 · 99 words · 1 minute read

I’ve started using Mock – Mocking and Test Utilities by Michael Foord (that’s fuzzyman to you :). Python’s dynamic nature (monkeypatching and whatnot) means that you don’t need to come up with some of the elaborate constructs for testing that Javafolk have had to. Mock gives you a few handy features to make stubbing out and verifying behavior easy and natural.

Fuzzyman’s new release of Mock (0.3.1) includes a couple of features that I suggested to make it more nose-friendly and to eliminate the need for global variables when using the “patch” decorator.

Thanks for the groovy module, Michael!