#NEWLINE# def test_csrf_custom_token_key( self ) : #NEWLINE# #INDENT# with self . app . test_request_context ( ) : #NEWLINE# #INDENT# default_csrf_token = generate_csrf ( ) #NEWLINE# custom_csrf_token = generate_csrf ( token_key = 'oauth_state' ) #NEWLINE# assert ( default_csrf_token != custom_csrf_token ) #NEWLINE# assert validate_csrf ( custom_csrf_token , token_key = 'oauth_state' )