

def test_form_initial(self):
    request = get_request()
    testform = TestWizard.as_view([('start', Step1), ('step2', Step2)], initial_dict={
        'start': {
            'name': 'value1',
        },
    })
    (response, instance) = testform(request)
    self.assertEqual(instance.get_form_initial('start'), {
        'name': 'value1',
    })
    self.assertEqual(instance.get_form_initial('step2'), {
        
    })

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/tests/wizard/forms.py FormTests.test_form_initial/original