Kaydet (Commit) c557db52 authored tarafından Georg Brandl's avatar Georg Brandl

#2249: document assertTrue and assertFalse.

üst 3accbb07
......@@ -566,6 +566,7 @@ failures.
.. method:: TestCase.assert_(expr[, msg])
TestCase.failUnless(expr[, msg])
TestCase.assertTrue(expr[, msg])
Signal a test failure if *expr* is false; the explanation for the error will be
*msg* if given, otherwise it will be :const:`None`.
......@@ -622,6 +623,7 @@ failures.
.. method:: TestCase.failIf(expr[, msg])
TestCase.assertFalse(expr[, msg])
The inverse of the :meth:`failUnless` method is the :meth:`failIf` method. This
signals a test failure if *expr* is true, with *msg* or :const:`None` for the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment