#NEWLINE# def test_form_preview( self ) : #NEWLINE# #INDENT# '\n        Test contrib.formtools.preview form preview rendering.\n\n        Use the client library to POST to the form to see if a preview\n        is returned.  If we do get a form back check that the hidden\n        value is correctly managing the state of the form.\n\n        ' #NEWLINE# self . test_data . update ( { #NEWLINE# #INDENT# 'stage' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . client . post ( '/test1/' , self . test_data ) #NEWLINE# stage = ( self . input % 2 ) #NEWLINE# self . assertContains ( response , stage , 1 )