#NEWLINE# def test_empty_csrf_headers( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/' , base_url = 'https://localhost/' ) #NEWLINE# csrf_token = get_csrf_token ( response . data ) #NEWLINE# self . app . config [ 'WTF_CSRF_HEADERS' ] = list ( ) #NEWLINE# response = self . client . post ( '/' , data = { #NEWLINE# #INDENT# 'name' : 'danny' , #NEWLINE# #UNINDENT# } , headers = { #NEWLINE# #INDENT# 'X-CSRFToken' : csrf_token , #NEWLINE# #UNINDENT# } , environ_base = { #NEWLINE# #INDENT# 'HTTP_REFERER' : 'https://localhost/' , #NEWLINE# #UNINDENT# } , base_url = 'https://localhost/' ) #NEWLINE# assert ( response . status_code == 400 )