Lines Matching refs:mock_calls
337 The :attr:`mock_calls` list is checked for the calls.
344 they must all appear in :attr:`mock_calls`.
411 :attr:`method_calls` and :attr:`mock_calls` attributes of this one.
612 :attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects.
659 .. attribute:: mock_calls
661 :attr:`mock_calls` records *all* calls to the mock object, its methods,
676 >>> mock.mock_calls == expected
679 Members of :attr:`mock_calls` are :data:`call` objects. These can be
685 The way :attr:`mock_calls` are recorded means that where nested
692 >>> mock.mock_calls
694 >>> mock.mock_calls[-1] == call.top(a=-1).bottom()
807 >>> mock_foo.mock_calls
846 >>> m.mock_calls
853 >>> m.mock_calls
869 >>> m.mock_calls
988 the :attr:`~Mock.method_calls` and :attr:`~Mock.mock_calls` attributes of the
1001 >>> parent.mock_calls
1012 >>> mock.mock_calls
1029 >>> parent.mock_calls
1686 are recorded in :attr:`~Mock.mock_calls`.
1907 :attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. :func:`call` can also be
1924 multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually constructing
1939 >>> m.mock_calls == kall.call_list()
1948 :attr:`Mock.mock_calls` attributes can be introspected to get at the individual
1953 in :attr:`Mock.mock_calls`, along with ones you construct yourself, are
1977 >>> kall = m.mock_calls[0]
1985 >>> name is m.mock_calls[0][0]
2036 :attr:`~Mock.mock_calls`:
2042 >>> m.mock_calls == [call(1), call(1, 2), ANY]
2154 >>> m.mock_calls