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

Method assertGreaterEqual

Lib/unittest/case.py:1316–1320  ·  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

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."""
1318 if not a >= b:
1319 standardMsg = '%s not greater than or equal to %s' % (safe_repr(a), safe_repr(b))
1320 self.fail(self._formatMessage(msg, standardMsg))
1321
1322 def assertIsNone(self, obj, msg=None):
1323 """Same as self.assertTrue(obj is None), with a nicer default message."""

Callers 15

test_0_field_compareMethod · 0.95
test_1_field_compareMethod · 0.95
check_decodeMethod · 0.80
test_get_statsMethod · 0.80
test_calcsizeMethod · 0.80
test_oneMethod · 0.80
check_lnotabMethod · 0.80
test_len_raceMethod · 0.80
test_cmp_to_keyMethod · 0.80
test_attributesMethod · 0.80

Calls 3

failMethod · 0.95
_formatMessageMethod · 0.95
safe_reprFunction · 0.85

Tested by 15

test_0_field_compareMethod · 0.76
test_1_field_compareMethod · 0.76
check_decodeMethod · 0.64
test_get_statsMethod · 0.64
test_calcsizeMethod · 0.64
test_oneMethod · 0.64
check_lnotabMethod · 0.64
test_len_raceMethod · 0.64
test_cmp_to_keyMethod · 0.64
test_attributesMethod · 0.64