Lines Matching refs:def
65 def __init__(self, name):
68 def __repr__(self):
73 def __init__(self):
76 def __getattr__(self, name):
88 def _is_magic(name):
91 def _copy(value):
99 def __init__(self, spec=None, side_effect=None, return_value=DEFAULT,
115 def reset_mock(self):
127 def __get_return_value(self):
132 def __set_return_value(self, value):
138 def __call__(self, *args, **kwargs):
171 def __getattr__(self, name):
187 def assert_called_with(self, *args, **kwargs):
191 def _dot_lookup(thing, comp, import_path):
199 def _importer(target):
211 def __init__(self, target, attribute, new, spec, create):
220 def __call__(self, func):
225 def patched(*args, **keywargs):
246 def get_original(self):
263 def __enter__(self):
282 def __exit__(self, *_):
290 def patch_object(target, attribute, new=DEFAULT, spec=None, create=False):
294 def patch(target, new=DEFAULT, spec=None, create=False):
304 def _has_local_attr(obj, name):