Re: [Twisted-Python] Which mocker tool for trial ?

2012-02-22 Thread Nicolas AGIUS
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

Re: [Twisted-Python] Which mocker tool for trial ?

2012-02-21 Thread Johan Rydberg
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

Re: [Twisted-Python] Which mocker tool for trial ?

2012-02-20 Thread exarkun
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

[Twisted-Python] Which mocker tool for trial ?

2012-02-20 Thread Nicolas AGIUS
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