

def test_form_condition(self):
    request = get_request()
    testform = TestWizard.as_view([('start', Step1), ('step2', Step2), ('step3', Step3)], condition_dict={
        'step2': True,
    })
    (response, instance) = testform(request)
    self.assertEqual(instance.get_next_step(), 'step2')
    testform = TestWizard.as_view([('start', Step1), ('step2', Step2), ('step3', Step3)], condition_dict={
        'step2': False,
    })
    (response, instance) = testform(testform)
    self.assertEqual(instance.get_next_step(), 'step3')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/tests/wizard/forms.py FormTests.test_form_condition/VarMisuse@124/176 `request`->`testform`