diff options
author | Georg Brandl <georg@python.org> | 2008-03-09 15:11:39 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-09 15:11:39 (GMT) |
commit | c557db5268552ef29ff7d487c3b5f21013ed3d54 (patch) | |
tree | caf203765b39ad0726059333b83809870dd8bca3 /Doc | |
parent | 3accbb0729524210b330a22b0a71c8aca1ae038a (diff) | |
download | cpython-c557db5268552ef29ff7d487c3b5f21013ed3d54.zip cpython-c557db5268552ef29ff7d487c3b5f21013ed3d54.tar.gz cpython-c557db5268552ef29ff7d487c3b5f21013ed3d54.tar.bz2 |
#2249: document assertTrue and assertFalse.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst index 90d32e2..3888904 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 |