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

def test_15075(self):

    reached = [False]
    that = self
    class WizardWithProcessStep(TestWizardClass, ):
        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 = {u'0-field': u'test', u'1-field': u'test2', u'hash_0': {2: u'cd13b1db3e8f55174bc5745a1b1a53408d4fd1ca', 3: u'9355d5dff22d49dbad58e46189982cec649f9f5b'}[pickle.HIGHEST_PROTOCOL], u'wizard_step': u'1'}
    wizard(DummyRequest(POST=data))
    self.assertTrue(reached[0])
