Lines Matching defs:call
23 'call',
636 method call:
707 # use ids here so as not to call __hash__ on the mocks
814 message = 'Expected call: %s\nActual call: %s'
827 different to the last call to the mock."""
831 raise AssertionError('Expected call: %s\nNot called' % (expected,))
877 '%r not all found in call list' % (tuple(not_found),)
886 the call is the most recent one."""
887 kall = call(*args, **kwargs)
891 '%s call not found' % expected_string
926 # but this will blow up on first call - so maybe we should fail early?
1000 # use ids here so as not to call __hash__ on the mocks
1059 If `side_effect` is an iterable then each call to the mock will return
1068 calling the Mock will pass the call through to the wrapped object
1352 # XXXX If new is a Mock we could call new.configure_mock(**kwargs)
1448 """Perform multiple patches in a single call. It takes the object to be
1971 A tuple for holding the results of a call to a mock, either in the form
1974 If args or kwargs are empty then a call tuple will compare equal to
1981 The `_Call` object provides a useful shortcut for comparing with call::
1983 _Call(((1, 2), {'a': 3})) == call(1, 2, a=3)
1984 _Call(('foo', (1, 2), {'a': 3})) == call.foo(1, 2, a=3)
2099 name = self.name or 'call'
2101 name = 'call%s' % name
2105 name = 'call'
2110 name = 'call'
2112 name = 'call.%s' % name
2114 name = 'call%s' % name
2119 """For a call object that represents multiple calls, `call_list`
2121 final call."""
2131 call = _Call(from_kall=False)