[issue2578] Figure out what to do with unittest's redundant APIs

Antoine Pitrou report at bugs.python.org
Sun Mar 29 14:00:11 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

> I -did- add casing for the type to the main assertEqual method so it may
> make sense to make the new type specific methods private so that they're
> not part of the public API (ie: I agree with pitrou that it seems
> pointless).

Well, that's my own aesthetical feeling. Others may disagree :)
But I think the public API should stay reasonably compact, so that unit
testing doesn't incur a lot of cognitive overhead.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2578>
_______________________________________


More information about the Python-bugs-list mailing list