ID EN
Unittest

assertEqual

Python 3.11

Test that first and second are equal. If the values do not compare equal, the test will fail.

Syntax

PYTHON
assertEqual(first, second, msg=None)

See Also

addTypeEqualityFunc() list of type-specific methods assertMultiLineEqual()