called
A boolean representing whether or not the mock object has been called:
>>> mock = Mock(return_value=None) >>> mock.called False >>> mock() >>> mock.called True
called
A boolean representing whether or not the mock object has been called:
>>> mock = Mock(return_value=None) >>> mock.called False >>> mock() >>> mock.called True
Please login to continue.