Skip to content

Commit fe7be86

Browse files
committed
update doc
1 parent d532d23 commit fe7be86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/unittest.mock.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ the *new_callable* argument to :func:`patch`.
532532

533533
.. attribute:: call_count
534534

535-
An integer telling you how many times the mock object has been called:
535+
An integer telling you how many times the mock object has been called,
536+
it is the length of call_args_list:
536537

537538
>>> mock = Mock(return_value=None)
538539
>>> mock.call_count
@@ -541,6 +542,8 @@ the *new_callable* argument to :func:`patch`.
541542
>>> mock()
542543
>>> mock.call_count
543544
2
545+
>>> mock.call_count == len(mock.call_args_list)
546+
True
544547

545548
.. attribute:: return_value
546549

0 commit comments

Comments
 (0)