Commit 1c43001c authored by Michael Foord's avatar Michael Foord

Closes issue 7030.

parent b1e66ee6
......@@ -806,12 +806,16 @@ Test cases
.. 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment