#NEWLINE# def test_15075( self ) : #NEWLINE# #INDENT# "\n        Regression test for ticket #15075.  Allow modifying wizard's form_list\n        in process_step.\n        " #NEWLINE# reached = [ False ] #NEWLINE# that = that #NEWLINE# class WizardWithProcessStep ( TestWizardClass ) : #NEWLINE# #INDENT# def process_step( self , request , form , step ) : #NEWLINE# #INDENT# if ( step == 0 ) : #NEWLINE# #INDENT# self . form_list [ 1 ] = WizardPageTwoAlternativeForm #NEWLINE# #UNINDENT# if ( step == 1 ) : #NEWLINE# #INDENT# that . assertTrue ( isinstance ( form , WizardPageTwoAlternativeForm ) ) #NEWLINE# reached [ 0 ] = True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# wizard = WizardWithProcessStep ( [ WizardPageOneForm , WizardPageTwoForm , WizardPageThreeForm ] ) #NEWLINE# data = { #NEWLINE# #INDENT# '0-field' : 'test' , #NEWLINE# '1-field' : 'test2' , #NEWLINE# 'hash_0' : '7e9cea465f6a10a6fb47fcea65cb9a76350c9a5c' , #NEWLINE# 'wizard_step' : '1' , #NEWLINE# #UNINDENT# } #NEWLINE# wizard ( DummyRequest ( POST = data ) ) #NEWLINE# self . assertTrue ( reached [ 0 ] )