Lines Matching refs:_new_parent
385 parent=None, _spec_state=None, _new_name='', _new_parent=None, argument
388 if _new_parent is None:
389 _new_parent = parent
395 __dict__['_mock_new_parent'] = _new_parent
480 _new_parent=self, _new_name='()'
609 _new_parent=self
940 _spec_state=None, _new_name='', _new_parent=None, **kwargs): argument
945 _spec_state, _new_name, _new_parent, **kwargs
985 _new_parent = self._mock_new_parent
986 while _new_parent is not None:
990 _new_parent.method_calls.append(_Call((method_call_name, args, kwargs)))
991 do_method_calls = _new_parent._mock_parent is not None
993 method_call_name = _new_parent._mock_name + '.' + method_call_name
997 _new_parent.mock_calls.append(this_mock_call)
999 if _new_parent._mock_new_name:
1004 is_a_call = _new_parent._mock_new_name == '()'
1005 mock_call_name = _new_parent._mock_new_name + dot + mock_call_name
1008 _new_parent = _new_parent._mock_new_parent
1012 _new_parent_id = id(_new_parent)
1331 new.return_value = Klass(_new_parent=new, _new_name='()',
1930 _new_parent=parent)
2203 mock = Klass(parent=_parent, _new_parent=_parent, _new_name=_new_name,
2254 _new_parent=parent,