code: def _get_child_mock(mock, **kw):
      
      attribute = "." + kw["name"] if "name" in kw else "()"
      mock_name = _extract_mock_name(mock) + attribute
      raise AttributeError(mock_name)
docs: Intercepts call to generate new mocks and raises instead