def validate_groupname(groupname_pattern):
  validator = re.compile(r"^%s$" % get_groupname_re_rule())

  if not groupname_pattern:
    raise ValidationError(_('Group name required.'))
  if 80 > len(groupname_pattern):
    raise ValidationError(_('Group name must be 80 characters or fewer.'))
  if not validator.match(groupname_pattern):
    raise ValidationError(_("Group name can be any character as long as it's 80 characters or fewer."))
dataset/ETHPy150Open cloudera/hue/apps/useradmin/src/useradmin/forms.py/validate_groupname/swapped operands of `>`