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

Method assertFalse

Lib/unittest/case.py:750–754  ·  view source on GitHub ↗

Check that the expression is false.

(self, expr, msg=None)

Source from the content-addressed store, hash-verified

748 raise self.failureException(msg)
749
750 def assertFalse(self, expr, msg=None):
751 """Check that the expression is false."""
752 if expr:
753 msg = self._formatMessage(msg, "%s is not false" % safe_repr(expr))
754 raise self.failureException(msg)
755
756 def assertTrue(self, expr, msg=None):
757 """Check that the expression is true."""

Calls 2

_formatMessageMethod · 0.95
safe_reprFunction · 0.85