Lines Matching refs:side_effect
324 funcopy.side_effect = mock.side_effect
385 'return_value', '_mock_return_value', 'side_effect',
599 return sig.side_effect
607 sig.side_effect = value
609 side_effect
638 >>> attrs = {'method.return_value': 3, 'other.side_effect': KeyError}
933 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT,
943 self.side_effect = side_effect
1007 effect = self.side_effect
1050 * `side_effect`: A function to be called whenever the Mock is called. See
1051 the `side_effect` attribute. Useful for raising exceptions or
1056 Alternatively `side_effect` can be an exception class or instance. In
1059 If `side_effect` is an iterable then each call to the mock will return
1837 # set it as a side_effect instead?
1844 method.side_effect = side_effector(mock)