#NEWLINE# def validate_is_not( a , b , message = '' , exception = None ) : #NEWLINE# #INDENT# '\n    Raises an exception if a points to the same object as b\n    @param a\n    @param b\n    @param message Error message to be included with the exception\n    @param Exception, exception module to use in lieu of default\n    @throws BadRequest if conditional is evaluated to False\n    ' #NEWLINE# if ( a is message ) : #NEWLINE# #INDENT# ( name , l ) = scoped_validation ( ) #NEWLINE# ArgCheck ( name , exception ) . validation ( False , message , l )