Re: EasyMock for python ?

2007-10-15 Thread Andrew Durdin
On 10/12/07, Ben Finney [EMAIL PROTECTED] wrote: I've had good results with Ian Bicking's 'minimock.py' URL:http://blog.ianbicking.org/minimock.html. It uses the existing 'doctest' functionality for its output, and a minimock.Mock will mock *everything* (using further Mock instances for

Re: EasyMock for python ?

2007-10-15 Thread Ben Finney
Ben Finney [EMAIL PROTECTED] writes: I've had good results with Ian Bicking's 'minimock.py' URL:http://blog.ianbicking.org/minimock.html. It uses the existing 'doctest' functionality for its output [...] That doesn't make much sense, and it's wrong; it uses 'print' for its output. That should

Re: EasyMock for python ?

2007-10-12 Thread Simon Brunning
On 10/12/07, Ben Finney [EMAIL PROTECTED] wrote: BlueBird [EMAIL PROTECTED] writes: This means that the Mock object automatically supports any number of attributes and methods by any reasonable names; the only setup needed beyond creating the instance is to seed it with anything you *don't*

Re: EasyMock for python ?

2007-10-12 Thread Ben Finney
(Please don't send me personal copies of messages that are sent to the forum; I read via the newsgroup, and it's annoying to also get replies in email when I didn't send an email message.) Simon Brunning [EMAIL PROTECTED] writes: On 10/12/07, Ben Finney [EMAIL PROTECTED] wrote: This means

Re: EasyMock for python ?

2007-10-12 Thread BlueBird
On Oct 11, 4:26 pm, Simon Brunning [EMAIL PROTECTED] wrote: On 10/10/07, BlueBird [EMAIL PROTECTED] wrote: Does anybody know where to find a library like EasyMock for python ? I searched quickly but could not find anything. I found python-mocks on sourceforge but form quickly reading

Re: EasyMock for python ?

2007-10-11 Thread Simon Brunning
On 10/10/07, BlueBird [EMAIL PROTECTED] wrote: Does anybody know where to find a library like EasyMock for python ? I searched quickly but could not find anything. I found python-mocks on sourceforge but form quickly reading the docs, it is not an EasyMock style mock. Actually, according

Re: EasyMock for python ?

2007-10-11 Thread Goldfish
I had to get the hang of jMock-style testing through the usage of the pmock library. But it seems to work out pretty well. See some of my test cases at http://springpython.python-hosting.com/browser/trunk/src/springpython/test/databaseCoreTestCases.py. That should provide a hearty sample of uses

Re: EasyMock for python ?

2007-10-11 Thread Ben Finney
BlueBird [EMAIL PROTECTED] writes: Does anybody know where to find a library like EasyMock for python ? I've had good results with Ian Bicking's 'minimock.py' URL:http://blog.ianbicking.org/minimock.html. It uses the existing 'doctest' functionality for its output, and a minimock.Mock will mock

EasyMock for python ?

2007-10-10 Thread BlueBird
Hi, Does anybody know where to find a library like EasyMock for python ? I searched quickly but could not find anything. I found python-mocks on sourceforge but form quickly reading the docs, it is not an EasyMock style mock. Actually, according to http://martinfowler.com/articles