Thanks for the tips, Mockito work great with Trial.
But it's a bit lazy for my needs, I think I''ll try to use Mock
(http://www.voidspace.org.uk/python/mock/)
Thx
--- En date de : Mar 21.2.12, Johan Rydberg a
écrit :
De: Johan Rydberg
Objet: Re: [Twisted-Python] Which mocker
We're using python-mockito and it works pretty good. I've also hacked it a bit
so that it works with zope interfaces. See this post, which also contains a
link
to the bitbucket project:
http://jrydberg.me/post/10519590583/strict-mocking-with-zope-interfaces
On Feb 20, 2012, at 6:04 PM, Nicolas
On 05:04 pm, nicolas.ag...@lps-it.fr wrote:
>Hi,
>
>I'm writing unitests with Trial for my app.
>
>I use Python Mocker (http://labix.org/mocker) for making stubs and
>mock. It work almost fine, but I have trouble mocking static methods.
>It seems that Mocker does'nt work with static methods calle
Hi,
I'm writing unitests with Trial for my app.
I use Python Mocker (http://labix.org/mocker) for making stubs and mock. It
work almost fine, but I have trouble mocking static methods. It seems that
Mocker does'nt work with static methods called from a callback.
Which tool are you using for m