Re: [Pyunit-interest] Aid requsted regarding test-first-design
Brought to you by:
purcell
From: Michal W. <sa...@ma...> - 2001-11-24 20:36:02
|
On Sat, 24 Nov 2001, Dave Kirby wrote: > The module in question is in the file area of the Yahoo > extremeprogramming group - > http://groups.yahoo.com/group/extremeprogramming/files/PythonMock.zip > > As the author of the module, I welcome any feedback on > ways to improve it. Unfortunately I am not doing any > Python programming at work at the moment, so am not > currently using it. > > If there is any interest in adding the module to the > pyunit distribution, or hosting it separately on the > pyunit site then I would be more than happy to contribute > it. Hey Dave, Thanks for writing it. I've read through the code and it's pretty slick. :) I have thought about extending it so that it could recognize parameters. In java, I got used to EasyMock ( http://easymock.org ), where you actually have two objects - a mock object and a controller. You call the mock object, and then tell the controller what result it should return. I think the way you do this in python is a whole lot cleaner, but I miss being able to test for parameters. Cheers, - Michal http://www.sabren.net/ sa...@ma... ------------------------------------------------------------ Give your ideas the perfect home: http://www.cornerhost.com/ cvs - weblogs - php - linux shell - perl/python/cgi - java ------------------------------------------------------------ |