

def test_form_kwargs(self):
    request = get_request()
    testform = TestWizard.as_view([('start', Step1), ('kwargs_test', CustomKwargsStep1)])
    (response, instance) = testform(request)
    self.assertEqual(self.get_form_kwargs('start'), {
        
    })
    self.assertEqual(instance.get_form_kwargs('kwargs_test'), {
        'test': True,
    })
    self.assertEqual(instance.get_form('kwargs_test').test, True)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/formtools/tests/wizard/forms.py FormTests.test_form_kwargs/VarMisuse@52/74 `instance`->`self`