diff options
author | Arne de Laat <arne@delaat.net> | 2017-02-23 15:57:25 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-23 15:57:25 +0100 |
commit | 324c5d8ca6ed1c964d3b20e5762139ec65c7827c (patch) | |
tree | 14378a18ff47eff42d95a2680b2fcd01210f69d8 /Lib/unittest/mock.py | |
parent | d7e64337ef45085792b382a09f5b3a45d3687c8c (diff) | |
download | cpython-git-324c5d8ca6ed1c964d3b20e5762139ec65c7827c.tar.gz |
bpo-28911: Clarify the behaviour of assert_called_once_with. (#251)
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r-- | Lib/unittest/mock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index 315b61157b..6989dc792e 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -811,8 +811,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." % |