Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2001-07-03 07:32:53
|
Patrick K. O'Brien wrote: > With the benefit of some couple of months behind us, and with the inclusion > of unittest in the standard Python distro, will there be any consensus on > which version of these method names to use? Will there be one Python way, or > are we doomed to an unusual amount of variety? I'm asking from the point of > view of someone who doesn't have a lot of legacy pyUnit code. The answer is almost too simple -- consistently use whichever method names lead to clearer test code, according to your personal aesthetic sense. There are aliases for the names because nobody can agree on the clearest set of names, and because of PyUnit's JUnit heritage. If you're looking for standardisation, use whatever names the PythonLabs guys are using in the Python regression tests. Personally I'll stick with my bizarre favoured combination of 'assertEquals', 'failUnless' and 'failIf'. Check back in the archives of this list from April to find out what the thinking was behind the aliased naming scheme. Best wishes, -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo |