MCPcopy Index your code
hub / github.com/RustPython/RustPython / assertGreater

Method assertGreater

Lib/unittest/case.py:1310–1314  ·  view source on GitHub ↗

Just like self.assertTrue(a > b), but with a nicer default message.

(self, a, b, msg=None)

Source from the content-addressed store, hash-verified

1308 self.fail(self._formatMessage(msg, standardMsg))
1309
1310 def assertGreater(self, a, b, msg=None):
1311 """Just like self.assertTrue(a > b), but with a nicer default message."""
1312 if not a > b:
1313 standardMsg = '%s not greater than %s' % (safe_repr(a), safe_repr(b))
1314 self.fail(self._formatMessage(msg, standardMsg))
1315
1316 def assertGreaterEqual(self, a, b, msg=None):
1317 """Just like self.assertTrue(a >= b), but with a nicer default message."""

Callers 15

test_1_field_compareMethod · 0.95
assert_exc_stringMethod · 0.80
test_context_managerMethod · 0.80
test_get_countMethod · 0.80
test_get_statsMethod · 0.80
test_freezeMethod · 0.80
test_identMethod · 0.80
check_c_stackMethod · 0.80
test_rate_limitMethod · 0.80
test_cmp_to_keyMethod · 0.80

Calls 3

failMethod · 0.95
_formatMessageMethod · 0.95
safe_reprFunction · 0.85

Tested by 15

test_1_field_compareMethod · 0.76
assert_exc_stringMethod · 0.64
test_context_managerMethod · 0.64
test_get_countMethod · 0.64
test_get_statsMethod · 0.64
test_freezeMethod · 0.64
test_identMethod · 0.64
check_c_stackMethod · 0.64
test_rate_limitMethod · 0.64
test_cmp_to_keyMethod · 0.64