mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
#2249: document assertTrue and assertFalse.
This commit is contained in:
parent
3accbb0729
commit
c557db5268
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue