def validate_auth_mechanism(option, value):
    # CRAM-MD5 is for server testing only. Undocumented,
    # unsupported, may be removed at any time. You have
    # been warned.
    if value not in MECHANISMS and value != 'CRAM-MD5':
        raise ValueError("%s must be in %s" % (option, tuple(MECHANISMS)))
    return value
Nicely displayed version of the facebook user
dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/common.py/validate_auth_mechanism--crossover with--dataset/ETHPy150Open tschellenbach/Django-facebook/django_facebook/admin.py/facebook_profile