diff options
author | Ismail S <ismail-s@users.noreply.github.com> | 2019-08-12 06:57:03 (GMT) |
---|---|---|
committer | Chris Withers <chris@withers.org> | 2019-08-12 06:57:03 (GMT) |
commit | f9590edfeae192ba95aadaee9460dc03a366c51a (patch) | |
tree | 213d346aab69c5c4f402333a29bc6b2b8eb5aa2e /Doc | |
parent | f03b4c8a48f62134799d368b78da35301af466a3 (diff) | |
download | cpython-f9590edfeae192ba95aadaee9460dc03a366c51a.zip cpython-f9590edfeae192ba95aadaee9460dc03a366c51a.tar.gz cpython-f9590edfeae192ba95aadaee9460dc03a366c51a.tar.bz2 |
Fix docs for assert_called and assert_called_once (#15197)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/unittest.mock.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 46e8ef3..19e9715 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -286,7 +286,7 @@ the *new_callable* argument to :func:`patch`. used to set attributes on the mock after it is created. See the :meth:`configure_mock` method for details. - .. method:: assert_called(*args, **kwargs) + .. method:: assert_called() Assert that the mock was called at least once. @@ -297,7 +297,7 @@ the *new_callable* argument to :func:`patch`. .. versionadded:: 3.6 - .. method:: assert_called_once(*args, **kwargs) + .. method:: assert_called_once() Assert that the mock was called exactly once. |