summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorRĂ©mi Lapeyre <remi.lapeyre@henki.fr>2019-08-29 06:15:53 (GMT)
committerNed Deily <nad@python.org>2019-08-29 06:15:53 (GMT)
commitf5896a05edf5df91fb1b55bd481ba5b2a3682f4e (patch)
tree17f0a2684aa74a71eef8c77a9373eab0625634dc /Lib/unittest
parentc96127821ebda50760e788b1213975a0d5bea37f (diff)
downloadcpython-f5896a05edf5df91fb1b55bd481ba5b2a3682f4e.zip
cpython-f5896a05edf5df91fb1b55bd481ba5b2a3682f4e.tar.gz
cpython-f5896a05edf5df91fb1b55bd481ba5b2a3682f4e.tar.bz2
bpo-35946: Improve assert_called_with documentation (GH-11796)
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 5846eeb..c6771ce 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -888,7 +888,7 @@ class NonCallableMock(Base):
raise AssertionError(msg)
def assert_called_with(self, /, *args, **kwargs):
- """assert that the mock was called with the specified arguments.
+ """assert that the last call was made with the specified arguments.
Raises an AssertionError if the args and keyword args passed in are
different to the last call to the mock."""