diff options
author | Arne de Laat <arne@delaat.net> | 2017-02-23 14:57:25 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-02-23 14:57:25 (GMT) |
commit | 324c5d8ca6ed1c964d3b20e5762139ec65c7827c (patch) | |
tree | 14378a18ff47eff42d95a2680b2fcd01210f69d8 /Lib/unittest | |
parent | d7e64337ef45085792b382a09f5b3a45d3687c8c (diff) | |
download | cpython-324c5d8ca6ed1c964d3b20e5762139ec65c7827c.zip cpython-324c5d8ca6ed1c964d3b20e5762139ec65c7827c.tar.gz cpython-324c5d8ca6ed1c964d3b20e5762139ec65c7827c.tar.bz2 |
bpo-28911: Clarify the behaviour of assert_called_once_with. (#251)
Diffstat (limited to 'Lib/unittest')
-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 315b611..6989dc7 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." % |