summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-11-03 20:45:31 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-11-03 20:45:31 (GMT)
commit9c02c2ffa2dc4b639889e2eef60a68bad96f54d4 (patch)
treeafc09608c0253501bdf468c85553ecc01617f3e8
parent4370b3013967aacc3dd32d2ddb381ce5d454b36b (diff)
downloadcpython-9c02c2ffa2dc4b639889e2eef60a68bad96f54d4.zip
cpython-9c02c2ffa2dc4b639889e2eef60a68bad96f54d4.tar.gz
cpython-9c02c2ffa2dc4b639889e2eef60a68bad96f54d4.tar.bz2
Minor cleanups to unittest doc.
-rw-r--r--Doc/library/unittest.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 2a35f4a..49260e0 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -914,7 +914,7 @@ Test cases
.. versionadded:: 3.1
- .. method:: assertIsInstance(obj, cls[, msg])
+ .. method:: assertIsInstance(obj, cls, msg=None)
This signals a test failure if *obj* is not an instance of *cls* (which
can be a class or a tuple of classes, as supported by :func:`isinstance`).
@@ -922,7 +922,7 @@ Test cases
.. versionadded:: 3.2
- .. method:: assertNotIsInstance(obj, cls[, msg])
+ .. method:: assertNotIsInstance(obj, cls, msg=None)
The inverse of the :meth:`assertIsInstance` method. This signals a test
failure if *obj* is an instance of *cls*.
@@ -1258,7 +1258,7 @@ Test cases
- .. method:: assertMultiLineEqual(self, first, second, msg=None)
+ .. method:: assertMultiLineEqual(first, second, msg=None)
Test that the multiline string *first* is equal to the string *second*.
When not equal a diff of the two strings highlighting the differences
@@ -1562,7 +1562,7 @@ Loading and running tests
:class:`TestLoader` objects have the following methods:
-a
+
.. method:: loadTestsFromTestCase(testCaseClass)
Return a suite of all tests cases contained in the :class:`TestCase`\ -derived