#NEWLINE# def test_form_submit_django12_hash_custom_hash( self ) : #NEWLINE# #INDENT# '\n        Test contrib.formtools.preview form submittal, using the hash function\n        used in Django 1.2 and a custom security_hash method.\n        ' #NEWLINE# self . test_data . update ( { #NEWLINE# #INDENT# 'stage' : 2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . post ( '/test2/' , self . test_data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertNotEqual ( response . content , success_string ) #NEWLINE# hash = utils . security_hash ( None , TestForm ( response . test_data ) ) #NEWLINE# self . test_data . update ( { #NEWLINE# #INDENT# 'hash' : hash , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . post ( '/test2/' , self . test_data ) #NEWLINE# self . assertNotEqual ( response . content , success_string )