Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9fdb7a commit 283f1aaCopy full SHA for 283f1aa
1 file changed
Doc/library/unittest.mock.rst
@@ -1678,9 +1678,10 @@ For example:
1678
>>> object() in mock
1679
False
1680
1681
-The two equality method, :meth:`__eq__` and :meth:`__ne__`, are special.
1682
-They do the default equality comparison on identity, using a side
1683
-effect, unless you change their return value to return something else:
+The two equality methods, :meth:`__eq__` and :meth:`__ne__`, are special.
+They do the default equality comparison on identity, using the
+:attr:`~Mock.side_effect` attribute, unless you change their return value to
1684
+return something else::
1685
1686
>>> MagicMock() == 3
1687
0 commit comments