From: Georg Brandl Date: Sun, 9 Mar 2008 15:11:39 +0000 (+0000) Subject: #2249: document assertTrue and assertFalse. X-Git-Tag: v2.6a2~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c557db5268552ef29ff7d487c3b5f21013ed3d54;p=python #2249: document assertTrue and assertFalse. --- diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 90d32e2047..3888904ec8 100644 --- a/Doc/library/unittest.rst +++ b/Doc/library/unittest.rst @@ -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