#NEWLINE# def validate_auth_mechanism( option , value ) : #NEWLINE# #INDENT# 'Validate the authMechanism URI option.\n    ' #NEWLINE# if ( ( option not in MECHANISMS ) and ( value != 'CRAM-MD5' ) ) : #NEWLINE# #INDENT# raise ValueError ( ( '%s must be in %s' % ( option , tuple ( MECHANISMS ) ) ) ) #NEWLINE# #UNINDENT# return value