Which mock library do you prefer?

Phlip phlip2005 at gmail.com
Tue Feb 16 23:50:10 CET 2010

On Feb 16, 12:30 pm, Ben Finney <ben+pyt... at benfinney.id.au> wrote:
> Lacrima <lacrima.ma... at gmail.com> writes:

> > And I have already refused to write totally isolated tests, because it
> > looks like a great waste of time.
> It only looks like that until you chase your tail in a long, fruitless
> debugging session because (you later realise) the behaviour of one test
> is being affected by another. Test isolation is essential to ensure that
> your tests are doing what you think they're doing.

That is runtime test isolation. It's not the same thing as "unit test
isolation". Just take care in your tearDown() to scrub your

Google "Mock abuse" from here...


More information about the Python-list mailing list