[Python-checkins] r77997 - python/trunk/Doc/library/unittest.rst
michael.foord
python-checkins at python.org
Fri Feb 5 21:52:14 CET 2010
Author: michael.foord
Date: Fri Feb 5 21:52:14 2010
New Revision: 77997
Log:
Closes issue 7030.
Modified:
python/trunk/Doc/library/unittest.rst
Modified: python/trunk/Doc/library/unittest.rst
==============================================================================
--- python/trunk/Doc/library/unittest.rst (original)
+++ python/trunk/Doc/library/unittest.rst Fri Feb 5 21:52:14 2010
@@ -806,12 +806,16 @@
.. versionadded:: 2.7
- .. method:: assertSameElements(expected, actual, msg=None)
+ .. method:: assertSameElements(actual, expected, msg=None)
Test that sequence *expected* contains the same elements as *actual*,
regardless of their order. When they don't, an error message listing
the differences between the sequences will be generated.
+ Duplicate elements are ignored when comparing *actual* and *expected*.
+ It is the equivalent of ``assertEqual(set(expected), set(actual))``
+ but it works with sequences of unhashable objects as well.
+
If specified *msg* will be used as the error message on failure.
.. versionadded:: 2.7
More information about the Python-checkins
mailing list