'Return the inner Requirement\'s "unsafe name".
Raise ValueError if there is no name.'

def _project_name(self):

    name = getattr(self._req.req, 'project_name', '')
    if name:
        return name
    raise ValueError('Requirement    has    no    project_name.')
