PyDocs

Nav

Development Tools

call

  • call(*args, **kwargs)
call() is a helper object for making simpler assertions, for comparing with call_args, call_args_list, mock_calls and method_calls. call() can also be used with assert_has_calls().
Members of call

c

call_list
For a call object that represents multiple calls, `call_list` returns a list of all the intermediate calls as well as the final call.
1 Example
>>> m = MagicMock(return_value=None)
>>> m(1, 2, a='foo', b='bar')
>>> m()
>>> m.call_args_list == [call(1, 2, a='foo', b='bar'), call()]
True
from the Python docs
See Also
No see-alsos for unittest.mock/call
0 Notes
No notes for call