[TIP] Mock objects and hierarchical visitor pattern

Benji York benji at benjiyork.com
Fri Jun 8 04:05:25 PDT 2007


Stefano Masini wrote:
> How can I make my life easier?

Testing is about return on investment.  If it's too much investment for 
too little return to define mocks for your processLeaf function, then 
don't, just let it be used.

I'm of the opinion that mocks are useful, but not nearly as useful or 
necessary as many seem to think.  As a matter of fact I haven't had a 
need to use them yet in three years of testing.
-- 
Benji York
http://benjiyork.com



More information about the testing-in-python mailing list