Issue25347 - Format the error message output of mock's assert_has_calls method.

Patch contributed by Robert Zimmerman.
This commit is contained in:
Senthil Kumaran 2016-01-12 06:18:32 -08:00
parent 2b06558769
commit 121edbf7e2
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ class NonCallableMock(Base):
if expected not in all_calls:
raise AssertionError(
'Calls not found.\nExpected: %r\n'
'Actual: %r' % (calls, self.mock_calls)
'Actual: %r' % (_CallList(calls), self.mock_calls)
) from cause
return