assertSetEqual(set1, set2, msg=None)¶
A set-specific equality assertion.
set1: The first set to compare. set2: The second set to compare. msg: Optional message to use on failure instead of a list ofdifferences.
assertSetEqual uses ducktyping to support different types of sets, and is optimized for sets specifically (parameters must support a difference method).