MCPcopy Index your code
hub / github.com/python/cpython / assertGreaterEqual

Method assertGreaterEqual

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

1309 self.fail(self._formatMessage(msg, standardMsg))
1310
1311 def assertGreaterEqual(self, a, b, msg=None):
1312 """Just like self.assertTrue(a >= b), but with a nicer default message."""
1313 if not a >= b:
1314 standardMsg = '%s not greater than or equal to %s' % (safe_repr(a), safe_repr(b))
1315 self.fail(self._formatMessage(msg, standardMsg))
1316
1317 def assertIsNone(self, obj, msg=None):
1318 """Same as self.assertTrue(obj is None), with a nicer default message."""

Callers 15

_test_set_comparisonsMethod · 0.95
test_0_field_compareMethod · 0.95
test_1_field_compareMethod · 0.95
check_decodeMethod · 0.80
test_self_traceMethod · 0.80
test_get_statsMethod · 0.80
test_calcsizeMethod · 0.80

Calls 3

failMethod · 0.95
_formatMessageMethod · 0.95
safe_reprFunction · 0.85

Tested by 15

_test_set_comparisonsMethod · 0.76
test_0_field_compareMethod · 0.76
test_1_field_compareMethod · 0.76
check_decodeMethod · 0.64
test_self_traceMethod · 0.64
test_get_statsMethod · 0.64
test_calcsizeMethod · 0.64