PyDocs

Nav

Development Tools

TestCase.assertSetEqual

unittest

method of TestCase · Added in 3.1 (source)
  • TestCase.assertSetEqual(first, second, msg=None)
A set-specific equality assertion.

Args:
    set1: The first set to compare.
    set2: The second set to compare.
    msg: Optional message to use on failure instead of a list of
            differences.

assertSetEqual uses ducktyping to support different types of sets, and
is optimized for sets specifically (parameters must support a
difference method).
0 Examples
No examples for unittest/TestCase.assertSetEqual.
See Also
No see-alsos for unittest/TestCase.assertSetEqual
0 Notes
No notes for TestCase.assertSetEqual