ID EN
Unittest

assertSequenceEqual

Python 3.11

Tests that two sequences are equal. If a seq_type is supplied, both first and second must be instances of seq_type or a failure will be raised. If the sequences are different an error message is constructed that shows the difference between the two.

Syntax

PYTHON
assertSequenceEqual(first, second, msg=None, seq_type=None)

See Also

assertEqual() assertListEqual() assertTupleEqual()