

def test_form_init(self):
    testform = TestWizard.get_initkwargs([Step1, Step2])
    self.assertEqual(testform['form_list'], {
        '0': Step1,
        '1': Step2,
    })
    testform = TestWizard.get_initkwargs([('start', Step1), ('step2', Step2)])
    self.assertEqual(testform['form_list'], {
        'start': Step1,
        'step2': Step2,
    })
    testform = TestWizard.get_initkwargs([Step1, Step2, ('finish', Step3)])
    self.assertEqual(self['form_list'], {
        '0': Step1,
        '1': Step2,
        'finish': Step3,
    })

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