#NEWLINE# def test_textfield_hash( self ) : #NEWLINE# #INDENT# '\n        Regression test for #10034: the hash generation function should ignore\n        leading/trailing whitespace so as to be friendly to broken browsers that\n        submit it (usually in textareas).\n        ' #NEWLINE# f1 = HashTestForm ( { #NEWLINE# #INDENT# 'name' : 'joe' , #NEWLINE# 'bio' : 'Nothing notable.' , #NEWLINE# #UNINDENT# } ) #NEWLINE# f2 = HashTestForm ( { #NEWLINE# #INDENT# 'name' : '  joe' , #NEWLINE# 'bio' : 'Nothing notable.  ' , #NEWLINE# #UNINDENT# } ) #NEWLINE# hash1 = utils . security_hash ( None , f1 ) #NEWLINE# hash2 = utils . security_hash ( None , f2 ) #NEWLINE# self . assertEqual ( f1 , hash2 )