@@ -189,7 +189,7 @@ code if they are used incorrectly:
189189 >>> mock_function(' wrong arguments' )
190190 Traceback (most recent call last):
191191 ...
192- TypeError: <lambda>() takes exactly 3 arguments (1 given)
192+ TypeError: missing a required argument: 'b'
193193
194194:func: `create_autospec ` can also be used on classes, where it copies the signature of
195195the ``__init__ `` method, and on callable objects where it copies the signature of
@@ -315,6 +315,7 @@ the *new_callable* argument to :func:`patch`.
315315 Traceback (most recent call last):
316316 ...
317317 AssertionError: Expected 'method' to have been called once. Called 2 times.
318+ Calls: [call(), call()].
318319
319320 .. versionadded :: 3.6
320321
@@ -342,7 +343,7 @@ the *new_callable* argument to :func:`patch`.
342343 Traceback (most recent call last):
343344 ...
344345 AssertionError: Expected 'mock' to be called once. Called 2 times.
345-
346+ Calls: [call('foo', bar='baz'), call('other', bar='values')].
346347
347348 .. method :: assert_any_call(*args, **kwargs)
348349
@@ -392,6 +393,7 @@ the *new_callable* argument to :func:`patch`.
392393 Traceback (most recent call last):
393394 ...
394395 AssertionError: Expected 'hello' to not have been called. Called 1 times.
396+ Calls: [call()].
395397
396398 .. versionadded :: 3.5
397399
@@ -954,7 +956,7 @@ object::
954956 >>> asyncio.run(main())
955957 >>> mock.assert_awaited_once()
956958 >>> asyncio.run(main())
957- >>> mock.method. assert_awaited_once()
959+ >>> mock.assert_awaited_once()
958960 Traceback (most recent call last):
959961 ...
960962 AssertionError: Expected mock to have been awaited once. Awaited 2 times.
@@ -972,7 +974,7 @@ object::
972974 >>> mock.assert_awaited_with(' other' )
973975 Traceback (most recent call last):
974976 ...
975- AssertionError: expected call not found.
977+ AssertionError: expected await not found.
976978 Expected: mock('other')
977979 Actual: mock('foo', bar='bar')
978980
0 commit comments