← Back to team overview

launchpad-dev team mailing list archive

Re: Writing stubs made easy

 

Stuart Bishop wrote:

How does this compare to Gustavo's mocker library (already available
thanks to buildout).

It's much, much simpler to learn and use.

The Mocker library AIUI gives you more comprehensive support in building various test patterns. My impression is that it's what you want when you have a very clear idea of how the pieces in your test will fit together right from the start.

FakeMethod lets you do a few very basic things very easily with minimal learning overhead and minimal structural impact. It's particularly nice for cases where you can't predict exactly what you need to mock up in order to get your test working.


Jeroen



References