[docs] [issue17866] TestCase.assertItemsEqual exists in 2.7, not in 3.3

Vitaly report at bugs.python.org
Fri May 20 19:50:17 EDT 2016


Vitaly added the comment:

Folks, assertCountEqual sounds like a really bad name. It misleads users into thinking that it only compares the number of elements in each sequence, whereas it actually asserts that equivalent items are present in both sequences, regardless of order. The original name from 2.7 assertItemsEqual was so much better and more meaningful.

----------

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


More information about the docs mailing list