Lines Matching refs:mock_calls
361 The :attr:`mock_calls` list is checked for the calls.
368 they must all appear in :attr:`mock_calls`.
435 :attr:`method_calls` and :attr:`mock_calls` attributes of this one.
645 :attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects.
695 .. attribute:: mock_calls
697 :attr:`mock_calls` records *all* calls to the mock object, its methods,
712 >>> mock.mock_calls == expected
715 Members of :attr:`mock_calls` are :data:`call` objects. These can be
721 The way :attr:`mock_calls` are recorded means that where nested
728 >>> mock.mock_calls
730 >>> mock.mock_calls[-1] == call.top(a=-1).bottom()
843 >>> mock_foo.mock_calls
1124 >>> m.mock_calls
1131 >>> m.mock_calls
1147 >>> m.mock_calls
1266 the :attr:`~Mock.method_calls` and :attr:`~Mock.mock_calls` attributes of the
1279 >>> parent.mock_calls
1290 >>> mock.mock_calls
1307 >>> parent.mock_calls
2002 are recorded in :attr:`~Mock.mock_calls`.
2232 :attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. :func:`call` can also be
2249 multiple entries in :attr:`~Mock.mock_calls` on a mock. Manually constructing
2264 >>> m.mock_calls == kall.call_list()
2273 :attr:`Mock.mock_calls` attributes can be introspected to get at the individual
2278 in :attr:`Mock.mock_calls`, along with ones you construct yourself, are
2301 >>> kall = m.mock_calls[0]
2309 >>> name is m.mock_calls[0][0]
2366 :attr:`~Mock.mock_calls`:
2372 >>> m.mock_calls == [call(1), call(1, 2), ANY]
2493 >>> m.mock_calls