#NEWLINE# def test_post_form_allow_display( self ) : #NEWLINE# #INDENT# self . fm . actions = [ 'dynamic_forms.actions.dynamic_form_store_database' ] #NEWLINE# self . fm . allow_display = True #NEWLINE# self . fm . save ( ) #NEWLINE# response = self . client . post ( '/form/' , { #NEWLINE# #INDENT# 'string-field' : 'Some submitted string' , #NEWLINE# 'field-for-boolean' : True , #NEWLINE# 'date-and-time' : '2013-09-07 12:34:56' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( response . status_code , 302 ) #NEWLINE# fmd = FormModelData . objects . get ( ) #NEWLINE# destination = ( '/done/?display_key=%s' % fmd . display_key ) #NEWLINE# self . assertRedirects ( response , destination )