summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/mock.py
diff options
context:
space:
mode:
authorArne de Laat <arne@delaat.net>2017-02-23 16:16:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-02-23 16:16:56 (GMT)
commitfa30453568ae71861aa1928373bd76da4f3a33f6 (patch)
treefacec143aeafd22d22b4c13044f846cae69a1bd0 /Lib/unittest/mock.py
parent0246422b974b1a0c50dd30b0e1a1138674ef87a5 (diff)
downloadcpython-fa30453568ae71861aa1928373bd76da4f3a33f6.zip
cpython-fa30453568ae71861aa1928373bd76da4f3a33f6.tar.gz
cpython-fa30453568ae71861aa1928373bd76da4f3a33f6.tar.bz2
bpo-28911: Clarify the behaviour of assert_called_once_with. (#254)
(cherry picked from commit 9d56b34af2efc4e266bf3ae62da5cd2e422a42be)
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r--Lib/unittest/mock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 0512cca..9bc40bc 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -795,8 +795,8 @@ class NonCallableMock(Base):
def assert_called_once_with(_mock_self, *args, **kwargs):
- """assert that the mock was called exactly once and with the specified
- arguments."""
+ """assert that the mock was called exactly once and that that call was
+ with the specified arguments."""
self = _mock_self
if not self.call_count == 1:
msg = ("Expected '%s' to be called once. Called %s times." %