[issue10273] Clean-up Unittest API
report at bugs.python.org
Wed Nov 3 03:29:53 CET 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Besides being shorter, the advantages of assertLE are consistent with the rich comparison method names, no worries about Than, no camel casing ambiguities, no pluralization or other nmemonic issues (LessThanEqual or LessThanEquals or LessThanOrEqual or LessThanOrEqualTo). The goal is to make sure you don't have to look up the spelling every time you use them.
That being said, assertEqual can't change. It has been around forever and is clear about what it does.
What I am sure about is that assertLess and assertLessEqual are very non-standard spellings and that infrequent users of comparison assertions won't remember them.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list