ID EN
Unittest

assertCountEqual

Python 3.11

Test that sequence first contains the same elements as second, regardless of their order. When they don’t, an error message listing the differences between the sequences will be generated.

Syntax

PYTHON
assertCountEqual(first, second, msg=None)