ID EN
Unittest

assertGreater

Python 3.11

Test that first is respectively >, >=, < or

Syntax

PYTHON
assertGreater(first, second, msg=None)

Examples

Example 1
PYTHON
>>> self.assertGreaterEqual(3, 4)
AssertionError: "3" unexpectedly not greater than or equal to "4"