Re: [Python-Dev] unittest's redundant assertions: asser ts vs. failIf/Unlesses

2008-07-13 Thread Antoine Pitrou
Steve Holden holdenweb.com> writes: > But Guido said: > > > I like using only the assertKeyword variants, removing assert_, fail*, > > and assertEquals. > > So we are now no longer discussing what color to paint the bike shed, we > are discussing how to describe the color. Let's stop. This i

Re: [Python-Dev] unittest's redundant assertions: asser ts vs. failIf/Unlesses

2008-07-13 Thread Antoine Pitrou
Let's split hairs a little... Steve Holden holdenweb.com> writes: > "Fail" isn't a negative. As Guido said, it's a description of the test > behavior under particular circumstances. In most circumstances, "fail" is a negative word defined as the contrary of something else (that is, as the "fai

Re: [Python-Dev] unittest's redundant assertions: asser ts vs. failIf/Unlesses

2008-07-13 Thread Antoine Pitrou
Andrew Bennetts puzzling.org> writes: > > On the other hand, “assert*” names are positive statements of what the > behaviour of the system-under-test is. And conversely, “fail*” names are a > bit like implementation details of how the test is written. So I personally > have a mild preference fo