Lines Matching refs:__dict__
138 # we explicitly don't copy func.__dict__ into this copy as it would
173 # *could* be broken by a class overriding __mro__ or __dict__ via
176 if base.__dict__.get('__call__') is not None:
340 self.__dict__[_the_name] = value
444 __dict__ = self.__dict__
445 __dict__['_mock_parent'] = parent
446 __dict__['_mock_name'] = name
447 __dict__['_mock_new_name'] = _new_name
448 __dict__['_mock_new_parent'] = _new_parent
449 __dict__['_mock_sealed'] = False
459 __dict__['_mock_children'] = {}
460 __dict__['_mock_wraps'] = wraps
461 __dict__['_mock_delegate'] = None
463 __dict__['_mock_called'] = False
464 __dict__['_mock_call_args'] = None
465 __dict__['_mock_call_count'] = 0
466 __dict__['_mock_call_args_list'] = _CallList()
467 __dict__['_mock_mock_calls'] = _CallList()
469 __dict__['method_calls'] = _CallList()
470 __dict__['_mock_unsafe'] = unsafe
529 __dict__ = self.__dict__
530 __dict__['_spec_class'] = _spec_class
531 __dict__['_spec_set'] = spec_set
532 __dict__['_spec_signature'] = _spec_signature
533 __dict__['_mock_methods'] = spec
534 __dict__['_spec_asyncs'] = _spec_asyncs
686 target_name = self.__dict__['_mock_name'] or self
751 from_dict = list(self.__dict__)
768 name not in self.__dict__):
802 if name in _all_magics and name in type(self).__dict__:
804 if name not in self.__dict__:
810 if name in self.__dict__:
1029 if _new_name in self.__dict__['_spec_asyncs']:
1105 self.__dict__['_mock_return_value'] = return_value
1406 original = target.__dict__[name]
2121 if entry in type(self).__dict__:
2126 these_magics = these_magics - set(type(self).__dict__)
2203 # It is set through __dict__ because when spec_set is True, this
2205 self.__dict__['_is_coroutine'] = asyncio.coroutines._is_coroutine
2206 self.__dict__['_mock_await_count'] = 0
2207 self.__dict__['_mock_await_args'] = None
2208 self.__dict__['_mock_await_args_list'] = _CallList()
2219 self.__dict__['__code__'] = code_mock
2220 self.__dict__['__name__'] = 'AsyncMock'
2221 self.__dict__['__defaults__'] = tuple()
2222 self.__dict__['__kwdefaults__'] = {}
2223 self.__dict__['__annotations__'] = None
2594 if attr in tuple.__dict__:
2798 if entry in getattr(spec, '__dict__', {}):
2804 result = klass.__dict__.get(entry, DEFAULT)
2983 self.__dict__['__code__'] = code_mock