bpo-28911: Clarify the behaviour of assert_called_once_with. (#251)

This commit is contained in:
Arne de Laat 2017-02-23 15:57:25 +01:00 committed by Victor Stinner
parent d7e64337ef
commit 324c5d8ca6
2 changed files with 8 additions and 7 deletions

View file

@ -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." %