We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d532d23 commit fe7be86Copy full SHA for fe7be86
Doc/library/unittest.mock.rst
@@ -532,7 +532,8 @@ the *new_callable* argument to :func:`patch`.
532
533
.. attribute:: call_count
534
535
- An integer telling you how many times the mock object has been called:
+ An integer telling you how many times the mock object has been called,
536
+ it is the length of call_args_list:
537
538
>>> mock = Mock(return_value=None)
539
>>> mock.call_count
@@ -541,6 +542,8 @@ the *new_callable* argument to :func:`patch`.
541
542
>>> mock()
543
544
2
545
+ >>> mock.call_count == len(mock.call_args_list)
546
+ True
547
548
.. attribute:: return_value
549
0 commit comments