Commit 7bc4c8c2 authored by Ezio Melotti's avatar Ezio Melotti

#18951: use consistent names in unittest docs.

parent 6eeca050
...@@ -916,8 +916,8 @@ Test cases ...@@ -916,8 +916,8 @@ Test cases
| :meth:`assertRaises(exc, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | | | :meth:`assertRaises(exc, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | |
| <TestCase.assertRaises>` | | | | <TestCase.assertRaises>` | | |
+---------------------------------------------------------+--------------------------------------+------------+ +---------------------------------------------------------+--------------------------------------+------------+
| :meth:`assertRaisesRegexp(exc, re, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 2.7 | | :meth:`assertRaisesRegexp(exc, r, fun, *args, **kwds) | ``fun(*args, **kwds)`` raises *exc* | 2.7 |
| <TestCase.assertRaisesRegexp>` | and the message matches *re* | | | <TestCase.assertRaisesRegexp>` | and the message matches regex *r* | |
+---------------------------------------------------------+--------------------------------------+------------+ +---------------------------------------------------------+--------------------------------------+------------+
.. method:: assertRaises(exception, callable, *args, **kwds) .. method:: assertRaises(exception, callable, *args, **kwds)
...@@ -993,10 +993,10 @@ Test cases ...@@ -993,10 +993,10 @@ Test cases
| :meth:`assertLessEqual(a, b) | ``a <= b`` | 2.7 | | :meth:`assertLessEqual(a, b) | ``a <= b`` | 2.7 |
| <TestCase.assertLessEqual>` | | | | <TestCase.assertLessEqual>` | | |
+---------------------------------------+--------------------------------+--------------+ +---------------------------------------+--------------------------------+--------------+
| :meth:`assertRegexpMatches(s, re) | ``regex.search(s)`` | 2.7 | | :meth:`assertRegexpMatches(s, r) | ``r.search(s)`` | 2.7 |
| <TestCase.assertRegexpMatches>` | | | | <TestCase.assertRegexpMatches>` | | |
+---------------------------------------+--------------------------------+--------------+ +---------------------------------------+--------------------------------+--------------+
| :meth:`assertNotRegexpMatches(s, re) | ``not regex.search(s)`` | 2.7 | | :meth:`assertNotRegexpMatches(s, r) | ``not r.search(s)`` | 2.7 |
| <TestCase.assertNotRegexpMatches>` | | | | <TestCase.assertNotRegexpMatches>` | | |
+---------------------------------------+--------------------------------+--------------+ +---------------------------------------+--------------------------------+--------------+
| :meth:`assertItemsEqual(a, b) | sorted(a) == sorted(b) and | 2.7 | | :meth:`assertItemsEqual(a, b) | sorted(a) == sorted(b) and | 2.7 |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment