[Python-checkins] r61329 - python/trunk/Doc/library/unittest.rst
georg.brandl
python-checkins at python.org
Sun Mar 9 16:11:40 CET 2008
Author: georg.brandl
Date: Sun Mar 9 16:11:39 2008
New Revision: 61329
Modified:
python/trunk/Doc/library/unittest.rst
Log:
#2249: document assertTrue and assertFalse.
Modified: python/trunk/Doc/library/unittest.rst
==============================================================================
--- python/trunk/Doc/library/unittest.rst (original)
+++ python/trunk/Doc/library/unittest.rst Sun Mar 9 16:11:39 2008
@@ -566,6 +566,7 @@
.. 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 @@
.. 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
More information about the Python-checkins
mailing list