bpo-35946: Improve assert_called_with documentation (GH-11796)
(cherry picked from commit f5896a05edf5df91fb1b55bd481ba5b2a3682f4e)
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index b3dc640..3faeb4c 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -854,7 +854,7 @@
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."""