#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( PreviewTests , self ) . setUp ( ) #NEWLINE# self . save_warnings_state ( ) #NEWLINE# warnings . filterwarnings ( 'ignore' , category = DeprecationWarning , module = 'django.contrib.formtools.utils' ) #NEWLINE# self . preview = preview . FormPreview ( TestForm ) #NEWLINE# input_template = '<input type="hidden" name="%s" value="%s" />' #NEWLINE# self . input = ( input_template % ( self . preview . unused_name ( 'stage' ) , '%d' ) ) #NEWLINE# self . test_data = { #NEWLINE# #INDENT# 'field1' : 'foo' , #NEWLINE# 'field1_' : 'asdf' , #NEWLINE# #UNINDENT# }