Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign AttributeStore NameLoad attr BinOpMod NameLoad TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore BinOpMod AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore BinOpMod AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Str Str Str Str Assign NameStore Call NameLoad Dict Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Dict Assign NameStore Call NameLoad Dict keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr BoolOpOr BoolOpAnd NameLoad Str Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Dict Str Str Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call NameLoad Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad Num decorator_list decorator_list Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call NameLoad Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad Num body Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Num NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ListLoad NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call NameLoad Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list decorator_list
N/A N/A unittest django forms django.conf settings django.contrib.formtools preview wizard utils django http django.test TestCase N/A success_string Done was called! TestFormPreview N/A N/A preview FormPreview N/A done N/A N/A self request cleaned_data N/A N/A N/A N/A N/A http HttpResponse success_string N/A N/A TestForm N/A N/A forms Form N/A N/A field1 N/A N/A forms CharField N/A field1_ N/A N/A forms CharField N/A bool1 N/A N/A forms BooleanField required False N/A PreviewTests N/A TestCase N/A N/A urls django.contrib.formtools.test_urls setUp N/A N/A self N/A N/A N/A N/A self preview N/A N/A preview FormPreview TestForm N/A input_template <input type="hidden" name="%s" value="%s" /> N/A N/A self input N/A input_template N/A N/A N/A N/A self preview unused_name stage %d N/A N/A self test_data N/A field1 field1_ foo asdf N/A test_unused_name N/A N/A self N/A N/A N/A 
        Verifies name mangling to get uniue field name.
         N/A N/A N/A self assertEqual N/A N/A N/A self preview unused_name field1 field1__ N/A test_form_get N/A N/A self N/A N/A N/A 
        Test contrib.formtools.preview form retrieval.

        Use the client library to see if we can sucessfully retrieve
        the form (mostly testing the setup ROOT_URLCONF
        process). Verify that an additional  hidden input field
        is created to manage the stage.

         N/A response N/A N/A N/A self client get /test1/ N/A stage N/A N/A self input 1 N/A N/A N/A self assertContains response stage 1 N/A test_form_preview N/A N/A self N/A N/A N/A 
        Test contrib.formtools.preview form preview rendering.

        Use the client library to POST to the form to see if a preview
        is returned.  If we do get a form back check that the hidden
        value is correctly managing the state of the form.

         N/A N/A N/A N/A self test_data update N/A stage 1 N/A response N/A N/A N/A self client post /test1/ N/A self test_data N/A stage N/A N/A self input 2 N/A N/A N/A self assertContains response stage 1 N/A test_form_submit N/A N/A self N/A N/A N/A 
        Test contrib.formtools.preview form submittal.

        Use the client library to POST to the form with stage set to 3
        to see if our forms done() method is called. Check first
        without the security hash, verify failure, retry with security
        hash and verify sucess.

         N/A N/A N/A N/A self test_data update N/A stage 2 N/A response N/A N/A N/A self client post /test1/ N/A self test_data N/A N/A N/A self failIfEqual N/A response content success_string N/A hash N/A N/A N/A self preview security_hash None N/A TestForm N/A self test_data N/A N/A N/A N/A self test_data update N/A hash hash N/A response N/A N/A N/A self client post /test1/ N/A self test_data N/A N/A N/A self assertEqual N/A response content success_string N/A test_bool_submit N/A N/A self N/A N/A N/A 
        Test contrib.formtools.preview form submittal when form contains:
        BooleanField(required=False)

        Ticket: #6209 - When an unchecked BooleanField is previewed, the preview
        form's hash would be computed with no value for ``bool1``. However, when
        the preview form is rendered, the unchecked hidden BooleanField would be
        rendered with the string value 'False'. So when the preview form is
        resubmitted, the hash would be computed with the value 'False' for
        ``bool1``. We need to make sure the hashes are the same in both cases.

         N/A N/A N/A N/A self test_data update N/A stage 2 N/A hash N/A N/A N/A self preview security_hash None N/A TestForm N/A self test_data N/A N/A N/A N/A self test_data update N/A hash bool1 hash False N/A response N/A N/A N/A self client post /test1/ N/A self test_data N/A N/A N/A self assertEqual N/A response content success_string N/A N/A SecurityHashTests N/A N/A unittest TestCase N/A test_textfield_hash N/A N/A self N/A N/A N/A 
        Regression test for #10034: the hash generation function should ignore
        leading/trailing whitespace so as to be friendly to broken browsers that
        submit it (usually in textareas).
         N/A f1 N/A HashTestForm N/A name bio joe Nothing notable. N/A f2 N/A HashTestForm N/A name bio   joe Nothing notable.   N/A hash1 N/A N/A utils security_hash None f1 N/A hash2 N/A N/A utils security_hash None f2 N/A N/A N/A self assertEqual hash1 hash2 N/A test_empty_permitted N/A N/A self N/A N/A N/A 
        Regression test for #10643: the security hash should allow forms with
        empty_permitted = True, or forms where data has not changed.
         N/A f1 N/A HashTestBlankForm N/A N/A f2 N/A HashTestForm N/A empty_permitted True N/A hash1 N/A N/A utils security_hash None f1 N/A hash2 N/A N/A utils security_hash None f2 N/A N/A N/A self assertEqual hash1 hash2 N/A N/A HashTestForm N/A N/A forms Form N/A N/A name N/A N/A forms CharField N/A bio N/A N/A forms CharField N/A HashTestBlankForm N/A N/A forms Form N/A N/A name N/A N/A forms CharField required False N/A bio N/A N/A forms CharField required False N/A WizardPageOneForm N/A N/A forms Form N/A N/A field N/A N/A forms CharField N/A WizardPageTwoForm N/A N/A forms Form N/A N/A field N/A N/A forms CharField N/A WizardPageTwoAlternativeForm N/A N/A forms Form N/A N/A field N/A N/A forms CharField N/A WizardPageThreeForm N/A N/A forms Form N/A N/A field N/A N/A forms CharField N/A WizardClass N/A N/A wizard FormWizard N/A render_template N/A N/A self N/A args kw N/A N/A N/A N/A http HttpResponse N/A done N/A N/A self request cleaned_data N/A N/A N/A N/A N/A http HttpResponse success_string N/A N/A DummyRequest N/A N/A http HttpRequest N/A __init__ N/A N/A self POST N/A None N/A N/A N/A N/A N/A super DummyRequest self __init__ N/A N/A self method N/A N/A POST POST GET N/A N/A POST None N/A N/A N/A N/A N/A self POST update POST N/A N/A self _dont_enforce_csrf_checks True N/A N/A WizardTests N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self old_SECRET_KEY N/A settings SECRET_KEY N/A N/A settings SECRET_KEY 123 N/A tearDown N/A N/A self N/A N/A N/A N/A settings SECRET_KEY N/A self old_SECRET_KEY N/A test_step_starts_at_zero N/A N/A self N/A N/A N/A 
        step should be zero for the first form
         N/A wizard N/A WizardClass N/A WizardPageOneForm WizardPageTwoForm N/A request N/A DummyRequest N/A N/A wizard request N/A N/A N/A self assertEquals 0 N/A wizard step N/A test_step_increments N/A N/A self N/A N/A N/A 
        step should be incremented when we go to the next page
         N/A wizard N/A WizardClass N/A WizardPageOneForm WizardPageTwoForm N/A request N/A DummyRequest POST N/A 0-field wizard_step test 0 N/A response N/A wizard request N/A N/A N/A self assertEquals 1 N/A wizard step N/A test_14498 N/A N/A self N/A N/A N/A 
        Regression test for ticket #14498.  All previous steps' forms should be
        validated.
         N/A that self N/A reached N/A False WizardWithProcessStep N/A WizardClass N/A process_step N/A N/A self request form step N/A N/A N/A N/A reached N/A 0 True N/A N/A N/A that assertTrue N/A hasattr form cleaned_data N/A N/A N/A wizard N/A WizardWithProcessStep N/A WizardPageOneForm WizardPageTwoForm WizardPageThreeForm N/A data N/A 0-field 1-field hash_0 wizard_step test test2 2fdbefd4c0cad51509478fbacddf8b13 1 N/A N/A wizard N/A DummyRequest POST data N/A N/A N/A self assertTrue N/A reached N/A 0 N/A test_14576 N/A N/A self N/A N/A N/A 
        Regression test for ticket #14576.

        The form of the last step is not passed to the done method.
         N/A reached N/A False N/A that self Wizard N/A WizardClass N/A done N/A N/A self request form_list N/A N/A N/A N/A reached N/A 0 True N/A N/A N/A that assertTrue N/A N/A len form_list 2 N/A N/A N/A wizard N/A Wizard N/A WizardPageOneForm WizardPageTwoForm N/A data N/A 0-field 1-field hash_0 wizard_step test test2 2fdbefd4c0cad51509478fbacddf8b13 1 N/A N/A wizard N/A DummyRequest POST data N/A N/A N/A self assertTrue N/A reached N/A 0 N/A test_15075 N/A N/A self N/A N/A N/A 
        Regression test for ticket #15075.  Allow modifying wizard's form_list
        in process_step.
         N/A reached N/A False N/A that self WizardWithProcessStep N/A WizardClass N/A process_step N/A N/A self request form step N/A N/A N/A N/A step 0 N/A N/A N/A N/A self form_list N/A 1 WizardPageTwoAlternativeForm N/A N/A step 1 N/A N/A N/A N/A that assertTrue N/A isinstance form WizardPageTwoAlternativeForm N/A N/A reached N/A 0 True N/A N/A N/A wizard N/A WizardWithProcessStep N/A WizardPageOneForm WizardPageTwoForm WizardPageThreeForm N/A data N/A 0-field 1-field hash_0 wizard_step test test2 2fdbefd4c0cad51509478fbacddf8b13 1 N/A N/A wizard N/A DummyRequest POST data N/A N/A N/A self assertTrue N/A reached N/A 0 N/A N/A