Lines Matching refs:_parent
335 _parent = parent
336 while _parent is not None:
339 if _parent is value:
341 _parent = _parent._mock_new_parent
609 _parent = self._mock_new_parent
616 while _parent is not None:
617 last = _parent
619 _name_list.append(_parent._mock_new_name + dot)
621 if _parent._mock_new_name == '()':
624 _parent = _parent._mock_new_parent
627 if id(_parent) in seen:
629 seen.add(id(_parent))
2085 def create_autospec(spec, spec_set=False, instance=False, _parent=None,
2135 if _parent is None:
2139 mock = Klass(parent=_parent, _new_parent=_parent, _new_name=_new_name,
2149 if _parent is not None and not instance:
2150 _parent._mock_children[_name] = mock
2154 _name='()', _parent=mock)