[TIP] Mocking frameworks

Grig Gheorghiu grig.gheorghiu at gmail.com
Mon Apr 5 07:51:16 PDT 2010


On Sun, Apr 4, 2010 at 9:24 AM, Gregory P. Smith <greg at krypto.org> wrote:
> On Sat, Apr 3, 2010 at 4:08 PM, Kev <kevin.p.dwyer at gmail.com> wrote:
>> Hello List,
>>
>> I've been googling python mocking frameworks recently to find one that
>> provides similar functionality, in terms of expectations, to Jmock2.
>> Does anyone know which python mocking frameworks provide such
>> functionality, and where the staste of the art is at the moment?
>
> Two to look at:
>
> http://code.google.com/p/pymox/  - this is what we use all over the
> place at Google. It is supposedly similar to Java's EasyMock.
>
> http://www.voidspace.org.uk/python/mock/
>

Coincidentally, I am reviewing these two mocking frameworks in a PyMag
article that I also put up on my blog:

http://agiletesting.blogspot.com/2009/07/python-mock-testing-techniques-and.html

Grig



More information about the testing-in-python mailing list