called
A boolean representing whether or not the mock object has been called:
1 2 3 4 5 6 | >>> 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:
1 2 3 4 5 6 | >>> mock = Mock(return_value=None) >>> mock.called False >>> mock() >>> mock.called True |
Designed by : w10schools
service@w10schools.com
Please login to continue.