def mutually_exclusive(class_name, properties, conditionals):
    from . import NoValue
    found_list = []
    for c in conditionals:
        if ((c in properties) and (not (properties[c] == NoValue))):
            found_list.append(c)
    seen = set(found_list)
    specified_count = len(seen)
    if (specified_count > 1):
        raise ValueError(('%s: only one of the following can be specified: %s' % (class_name, ', '.join(conditionals))))
    return specified_count
def mutually_exclusive(class_name, properties, conditionals):
    from . import NoValue
    found_list = []
    for c in conditionals:
        if ((c in properties) and (not (properties[c] == NoValue))):
            found_list.append(c)
    seen = set(found_list)
    specified_count = len(seen)
    if (specified_count > 1):
        raise ValueError(('%s: only one of the following can be specified: %s' % (class_name, ', '.join(conditionals))))
    return specified_count