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

Method assertLessEqual

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

1302 self.fail(self._formatMessage(msg, standardMsg))
1303
1304 def assertLessEqual(self, a, b, msg=None):
1305 """Just like self.assertTrue(a <= b), but with a nicer default message."""
1306 if not a <= b:
1307 standardMsg = '%s not less than or equal to %s' % (safe_repr(a), safe_repr(b))
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."""

Callers 15

test_0_field_compareMethod · 0.95
test_1_field_compareMethod · 0.95
check_decodeMethod · 0.80
test_calcsizeMethod · 0.80
test_len_raceMethod · 0.80
test_cmp_to_keyMethod · 0.80
test_openssl_versionMethod · 0.80
test_utcnowMethod · 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_calcsizeMethod · 0.64
test_len_raceMethod · 0.64
test_cmp_to_keyMethod · 0.64
test_openssl_versionMethod · 0.64
test_utcnowMethod · 0.64