'Regression test for ticket #15075.  Allow modifying wizard\'s form_list
in process_step.'

def test_15075(self):

    reached = [False]
    that = self
    class WizardWithProcessStep(WizardClass, ):
        def process_step(self, request, form, step):
            if (step == 0):
                self.form_list[1] = WizardPageTwoAlternativeForm
            if (step == 1):
                that.assertTrue(isinstance(form, WizardPageTwoAlternativeForm))
                reached[0] = True
    wizard = WizardWithProcessStep([WizardPageOneForm, WizardPageTwoForm, WizardPageThreeForm])
    data = {'0-field': 'test', '1-field': 'test2', 'hash_0': '2fdbefd4c0cad51509478fbacddf8b13', 'wizard_step': '1'}
    wizard(DummyRequest(POST=data))
    self.assertTrue(reached[0])
