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

Method assertFalse

Lib/unittest/case.py:757–761  ·  view source on GitHub ↗

Check that the expression is false.

(self, expr, msg=None)

Source from the content-addressed store, hash-verified

755 raise self.failureException(msg)
756
757 def assertFalse(self, expr, msg=None):
758 """Check that the expression is false."""
759 if expr:
760 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
761 raise self.failureException(msg)
762
763 def assertTrue(self, expr, msg=None):
764 """Check that the expression is true."""

Calls 2

_formatMessageMethod · 0.95
safe_reprFunction · 0.85