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

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 14 03:05:34 CEST 2008


Ben Finney wrote:

> That's another reason to avoid "assert" in the name: these methods
> *don't* necessarily use the 'assert' statement. Avoiding the
> implication that they do use that is a good thing.

Perhaps some positive alternative such as "verify" could
be used instead.

-- 
Greg


More information about the Python-Dev mailing list