Lines Matching refs:decorator
1430 `patch.object` can be used as a decorator, class decorator or a context
1436 When used as a class decorator `patch.object` honours `patch.TEST_PREFIX`
1460 `patch.multiple` can be used as a decorator, class decorator or a context
1465 When used as a class decorator `patch.multiple` honours `patch.TEST_PREFIX`
1500 `patch` acts as a function decorator, class decorator or a context
1506 `MagicMock`. If `patch` is used as a decorator and `new` is
1546 Patch can be used as a `TestCase` class decorator. It works by
1595 `patch.dict` can be used as a context manager, decorator or class
1596 decorator. When used as a class decorator `patch.dict` honours
1630 decorator = _patch_dict(self.in_dict, self.values, self.clear)
1631 decorated = decorator(attr_value)