mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35946: Improve assert_called_with documentation (GH-11796)
This commit is contained in:
parent
c96127821e
commit
f5896a05ed
2 changed files with 3 additions and 3 deletions
|
@ -317,8 +317,8 @@ the *new_callable* argument to :func:`patch`.
|
|||
|
||||
.. method:: assert_called_with(*args, **kwargs)
|
||||
|
||||
This method is a convenient way of asserting that calls are made in a
|
||||
particular way:
|
||||
This method is a convenient way of asserting that the last call has been
|
||||
made in a particular way:
|
||||
|
||||
>>> mock = Mock()
|
||||
>>> mock.method(1, 2, 3, test='wow')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue