예제 #1
0
    def test_revalidation(self):
        request = get_request()

        testform = self.formwizard_class.as_view([('start', Step1),
                                                  ('step2', Step2)],
                                                 url_name=self.wizard_urlname)
        response, instance = testform(request, step='done')

        instance.render_done(None)
        self.assertEqual(instance.storage.current_step, 'start')
예제 #2
0
파일: tests.py 프로젝트: Fandekasp/django
    def test_revalidation(self):
        request = get_request()

        testform = self.formwizard_class.as_view(
            [('start', Step1), ('step2', Step2)],
            url_name=self.wizard_urlname)
        response, instance = testform(request, step='done')

        instance.render_done(None)
        self.assertEqual(instance.storage.current_step, 'start')