ID EN
Unittest

assertSetEqual

Python 3.11

Tests that two sets are equal. If not, an error message is constructed that lists the differences between the sets. This method is used by default when comparing sets or frozensets with assertEqual().

Syntax

PYTHON
assertSetEqual(first, second, msg=None)

See Also

assertEqual()