Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c02c2f

Browse files
committed
Minor cleanups to unittest doc.
1 parent 4370b30 commit 9c02c2f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/unittest.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,15 +914,15 @@ Test cases
914914
.. versionadded:: 3.1
915915

916916

917-
.. method:: assertIsInstance(obj, cls[, msg])
917+
.. method:: assertIsInstance(obj, cls, msg=None)
918918

919919
This signals a test failure if *obj* is not an instance of *cls* (which
920920
can be a class or a tuple of classes, as supported by :func:`isinstance`).
921921

922922
.. versionadded:: 3.2
923923

924924

925-
.. method:: assertNotIsInstance(obj, cls[, msg])
925+
.. method:: assertNotIsInstance(obj, cls, msg=None)
926926

927927
The inverse of the :meth:`assertIsInstance` method. This signals a test
928928
failure if *obj* is an instance of *cls*.
@@ -1258,7 +1258,7 @@ Test cases
12581258

12591259

12601260

1261-
.. method:: assertMultiLineEqual(self, first, second, msg=None)
1261+
.. method:: assertMultiLineEqual(first, second, msg=None)
12621262

12631263
Test that the multiline string *first* is equal to the string *second*.
12641264
When not equal a diff of the two strings highlighting the differences
@@ -1562,7 +1562,7 @@ Loading and running tests
15621562

15631563
:class:`TestLoader` objects have the following methods:
15641564

1565-
a
1565+
15661566
.. method:: loadTestsFromTestCase(testCaseClass)
15671567

15681568
Return a suite of all tests cases contained in the :class:`TestCase`\ -derived

0 commit comments

Comments
 (0)