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.
unittest.mock.Mock
1 parent 7b91320 commit cb944d0Copy full SHA for cb944d0
1 file changed
Doc/library/unittest.mock.rst
@@ -72,6 +72,7 @@ available, and then make assertions about how they have been used:
72
:attr:`side_effect` allows you to perform side effects, including raising an
73
exception when a mock is called:
74
75
+ >>> from unittest.mock import Mock
76
>>> mock = Mock(side_effect=KeyError('foo'))
77
>>> mock()
78
Traceback (most recent call last):
0 commit comments