call_count
An integer telling you how many times the mock object has been called:
>>> mock = Mock(return_value=None) >>> mock.call_count 0 >>> mock() >>> mock() >>> mock.call_count 2
call_count
An integer telling you how many times the mock object has been called:
>>> mock = Mock(return_value=None) >>> mock.call_count 0 >>> mock() >>> mock() >>> mock.call_count 2
Please login to continue.