Adding assertIs and assertIsNot methods to unittest.TestCase
Issue #2578
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index 38e4239..4f4459c 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -859,6 +859,23 @@
.. versionadded:: 2.7
+ .. method:: assertIs(expr1, expr2[, msg])
+
+ This signals a test failure if *expr1* and *expr2* don't evaluate to the same
+ object.
+
+ .. versionadded:: 2.7
+
+
+ .. method:: assertIsNot(expr1, expr2[, msg])
+
+ The inverse of the :meth:`assertIs` method.
+ This signals a test failure if *expr1* and *expr2* evaluate to the same
+ object.
+
+ .. versionadded:: 2.7
+
+
.. method:: assertFalse(expr[, msg])
failIf(expr[, msg])