Lines Matching refs:_new_parent
479 parent=None, _spec_state=None, _new_name='', _new_parent=None, argument
482 if _new_parent is None:
483 _new_parent = parent
489 __dict__['_mock_new_parent'] = _new_parent
564 _new_parent=self, _new_name='()'
674 _new_parent=self
935 _spec_state=None, _new_name='', _new_parent=None, **kwargs): argument
940 _spec_state, _new_name, _new_parent, **kwargs
966 _new_parent = self._mock_new_parent
973 while _new_parent is not None:
975 if _new_parent._mock_new_name:
981 if _new_parent._mock_new_name == '()':
984 _new_name = _new_parent._mock_new_name + dot + _new_name
991 _new_parent.method_calls.append(this_method_call)
993 do_method_calls = _new_parent._mock_parent is not None
995 name = _new_parent._mock_name + '.' + name
997 _new_parent.mock_calls.append(this_mock_call)
998 _new_parent = _new_parent._mock_new_parent
1001 _new_parent_id = id(_new_parent)
1331 new.return_value = Klass(_new_parent=new, _new_name='()',
1925 _new_parent=parent)
2185 mock = Klass(parent=_parent, _new_parent=_parent, _new_name=_new_name,
2238 _new_parent=parent, **kwargs)