def METHOD_NAME(self, build):
    try:
        if build.status.tests_fail == 0:
            message = "All tests passed"
            success = True
        else:
            message = "Some tests failed (%d)" % build.status.tests_fail
            success = False
    except ProjectStatus.DoesNotExist:
        logger.error('ProjectStatus for build %s/%s does not exist' % (build.project.slug, build.version))
        message = "An error occurred"
    data = {
        'message': Plugin.__message__(build, finished=True, extra_message=message),
        'labels': self.__get_labels__(build, success=success)
    }
    return self.__gerrit_request__(build, data)