Skip to content

Commit

Permalink
Fix docs for assert_called and assert_called_once (#15197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-s authored and cjw296 committed Aug 12, 2019
1 parent f03b4c8 commit f9590ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down

0 comments on commit f9590ed

Please sign in to comment.