Testing FormWizard https://groups.google.com/forum/#!msg/django-users/87iYPGK2GE8/MaWDVfBJsZ8J
class MyForm(forms.Form):
some_field = forms.CharField()
class MyWizard(SessionWizardView):
# ...do some stuff...
# And a url like:
url(r'^wizard/$', views.MyWizard.as_view([MyForm, MyOtherForm]))
# Then your test needs to look like:
class TestWizardView(TestCase):
def test_form(self):
data = {'my_wizard-current_step': '0', '0-some_field': 'whatever'}
response = self.client.post('/wizard/', data=data)
# your assertions here