MCPcopy Index your code
hub / github.com/python/cpython / __set_side_effect

Method __set_side_effect

Lib/unittest/mock.py:627–633  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

625 return sf
626
627 def __set_side_effect(self, value):
628 value = _try_iter(value)
629 delegated = self._mock_delegate
630 if delegated is None:
631 self._mock_side_effect = value
632 else:
633 delegated.side_effect = value
634
635 side_effect = property(__get_side_effect, __set_side_effect)
636

Callers

nothing calls this directly

Calls 1

_try_iterFunction · 0.85

Tested by

no test coverage detected