#18951: use consistent names in unittest docs.
This commit is contained in:
parent
d4fac04fde
commit
36c3368233
|
@ -916,8 +916,8 @@ Test cases
|
|||
| :meth:`assertRaises(exc, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | |
|
||||
| <TestCase.assertRaises>` | | |
|
||||
+---------------------------------------------------------+--------------------------------------+------------+
|
||||
| :meth:`assertRaisesRegexp(exc, re, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 2.7 |
|
||||
| <TestCase.assertRaisesRegexp>` | and the message matches *re* | |
|
||||
| :meth:`assertRaisesRegexp(exc, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 2.7 |
|
||||
| <TestCase.assertRaisesRegexp>` | and the message matches regex *r* | |
|
||||
+---------------------------------------------------------+--------------------------------------+------------+
|
||||
|
||||
.. method:: assertRaises(exception, callable, *args, **kwds)
|
||||
|
@ -993,10 +993,10 @@ Test cases
|
|||
| :meth:`assertLessEqual(a, b) | ``a <= b`` | 2.7 |
|
||||
| <TestCase.assertLessEqual>` | | |
|
||||
+---------------------------------------+--------------------------------+--------------+
|
||||
| :meth:`assertRegexpMatches(s, re) | ``regex.search(s)`` | 2.7 |
|
||||
| :meth:`assertRegexpMatches(s, r) | ``r.search(s)`` | 2.7 |
|
||||
| <TestCase.assertRegexpMatches>` | | |
|
||||
+---------------------------------------+--------------------------------+--------------+
|
||||
| :meth:`assertNotRegexpMatches(s, re) | ``not regex.search(s)`` | 2.7 |
|
||||
| :meth:`assertNotRegexpMatches(s, r) | ``not r.search(s)`` | 2.7 |
|
||||
| <TestCase.assertNotRegexpMatches>` | | |
|
||||
+---------------------------------------+--------------------------------+--------------+
|
||||
| :meth:`assertItemsEqual(a, b) | sorted(a) == sorted(b) and | 2.7 |
|
||||
|
|
Loading…
Reference in New Issue