]> granicus.if.org Git - python/commitdiff
#2249: document assertTrue and assertFalse.
authorGeorg Brandl <georg@python.org>
Sun, 9 Mar 2008 15:11:39 +0000 (15:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 9 Mar 2008 15:11:39 +0000 (15:11 +0000)
Doc/library/unittest.rst

index 90d32e204757b42a1809bc994068ca0a557fcad5..3888904ec875c81b1aa71c6e91a37f1e454cee39 100644 (file)
@@ -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