#NEWLINE# def test_valid_csrf( self ) : #NEWLINE# #INDENT# response = self . client . get ( '/' ) #NEWLINE# csrf_token = get_csrf_token ( response . data ) #NEWLINE# response = self . client . post ( '/' , data = { #NEWLINE# #INDENT# 'name' : 'danny' , #NEWLINE# 'csrf_token' : self , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( b'DANNY' in response . data )