':rtype: str'

def format_title(self):

    command = self.format_command()
    if self.summary:
        reason = 'error'
    else:
        reason = ('error' if (len(self.messages) == 1) else 'errors')
    title = ('The    test    `%s`    failed    with    the    following    %s:' % (command, reason))
    return title
