Module ImportFrom __future__ alias unicode_literals Expr Str Use-blog-post-test-to-test-user-permissions-logic Import alias frappe Import alias frappe.defaults Import alias unittest Import alias json Import alias frappe.model.meta ImportFrom frappe.core.page.user_permissions.user_permissions alias add alias remove alias get_permissions ImportFrom frappe.permissions alias clear_user_permissions_for_doctype alias get_doc_permissions Assign NameStore test_records Call AttributeLoad NameLoad frappe attr get_test_records Str Blog-Post Assign NameStore test_dependencies ListLoad Str User ClassDef TestPermissions bases AttributeLoad NameLoad unittest attr TestCase body FunctionDef setUp arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad frappe attr clear_cache keyword doctype Str Blog-Post Assign NameStore user Call AttributeLoad NameLoad frappe attr get_doc Str User Str test1@example.com Expr Call AttributeLoad NameLoad user attr add_roles Str Website-Manager Assign NameStore user Call AttributeLoad NameLoad frappe attr get_doc Str User Str test2@example.com Expr Call AttributeLoad NameLoad user attr add_roles Str Blogger Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-if_owner=0where-parent='Blog-Post'-and-permlevel=0-and-permlevel=0-and-role='Blogger' Expr Call AttributeLoad NameLoad self attr set_ignore_user_permissions_if_missing Num 0 Expr Call AttributeLoad NameLoad frappe attr set_user Str test1@example.com decorator_list FunctionDef tearDown arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad frappe attr set_user Str Administrator Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr set_value Str Blogger Str _Test-Blogger-1 Str user NameLoad None Expr Call NameLoad clear_user_permissions_for_doctype Str Blog-Category Expr Call NameLoad clear_user_permissions_for_doctype Str Blog-Post Expr Call NameLoad clear_user_permissions_for_doctype Str Blogger Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-user_permission_doctypes=null,-apply_user_permissions=0where-parent='Blog-Post'-and-permlevel=0-and-apply_user_permissions=1and-`read`=1 Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-if_owner=0where-parent='Blog-Post'-and-permlevel=0-and-permlevel=0-and-role='Blogger' Expr Call AttributeLoad NameLoad self attr set_ignore_user_permissions_if_missing Num 0 decorator_list FunctionDef set_ignore_user_permissions_if_missing arguments args NameParam self NameParam ignore defaults body Assign NameStore ss Call AttributeLoad NameLoad frappe attr get_doc Str System-Settings Assign AttributeStore NameLoad ss attr ignore_user_permissions_if_missing NameLoad ignore Assign AttributeStore AttributeLoad NameLoad ss attr flags attr ignore_mandatory Num 1 Expr Call AttributeLoad NameLoad ss attr save decorator_list FunctionDef test_basic_permission arguments args NameParam self defaults body Assign NameStore post Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad post attr has_permission Str read decorator_list FunctionDef test_user_permissions_in_doc arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Category Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category-1 Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore post Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad post attr has_permission Str read Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad Call NameLoad get_doc_permissions NameLoad post attr get Str read Assign NameStore post1 Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad post1 attr has_permission Str read Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad Call NameLoad get_doc_permissions NameLoad post1 attr get Str read decorator_list FunctionDef test_user_permissions_in_report arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Category Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category-1 Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore names ListComp AttributeLoad NameLoad d attr name comprehension NameStore d Call AttributeLoad NameLoad frappe attr get_list Str Blog-Post keyword fields ListLoad Str name Str blog_category Expr Call AttributeLoad NameLoad self attr assertTrue CompareIn Str _test-blog-post-1 NameLoad names Expr Call AttributeLoad NameLoad self attr assertFalse CompareIn Str _test-blog-post NameLoad names decorator_list FunctionDef test_default_values arguments args NameParam self defaults body Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category-1 Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr new_doc Str Blog-Post Expr Call AttributeLoad NameLoad self attr assertEquals Call AttributeLoad NameLoad doc attr get Str blog_category Str _Test-Blog-Category-1 decorator_list FunctionDef test_user_link_match_doc arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blogger Assign NameStore blogger Call AttributeLoad NameLoad frappe attr get_doc Str Blogger Str _Test-Blogger-1 Assign AttributeStore NameLoad blogger attr user Str test2@example.com Expr Call AttributeLoad NameLoad blogger attr save Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore post Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-2 Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad post attr has_permission Str read Assign NameStore post1 Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad post1 attr has_permission Str read decorator_list FunctionDef test_user_link_match_report arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blogger Assign NameStore blogger Call AttributeLoad NameLoad frappe attr get_doc Str Blogger Str _Test-Blogger-1 Assign AttributeStore NameLoad blogger attr user Str test2@example.com Expr Call AttributeLoad NameLoad blogger attr save Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore names ListComp AttributeLoad NameLoad d attr name comprehension NameStore d Call AttributeLoad NameLoad frappe attr get_list Str Blog-Post keyword fields ListLoad Str name Str owner Expr Call AttributeLoad NameLoad self attr assertTrue CompareIn Str _test-blog-post-2 NameLoad names Expr Call AttributeLoad NameLoad self attr assertFalse CompareIn Str _test-blog-post-1 NameLoad names decorator_list FunctionDef test_set_user_permissions arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad frappe attr set_user Str test1@example.com Expr Call NameLoad add Str test2@example.com Str Blog-Post Str _test-blog-post decorator_list FunctionDef test_not_allowed_to_set_user_permissions arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Expr Call AttributeLoad NameLoad self attr assertRaises AttributeLoad NameLoad frappe attr PermissionError NameLoad add Str test2@example.com Str Blog-Post Str _test-blog-post decorator_list FunctionDef test_read_if_explicit_user_permissions_are_set arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Post Expr Call AttributeLoad NameLoad self attr test_set_user_permissions Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str read Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad doc attr has_permission Str read decorator_list FunctionDef test_not_allowed_to_remove_user_permissions arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad self attr test_set_user_permissions Assign NameStore defname AttributeLoad SubscriptLoad Call NameLoad get_permissions Str test2@example.com Str Blog-Post Str _test-blog-post Index Num 0 attr name Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Expr Call AttributeLoad NameLoad self attr assertRaises AttributeLoad NameLoad frappe attr PermissionError NameLoad remove Str test2@example.com NameLoad defname Str Blog-Post Str _test-blog-post decorator_list FunctionDef test_user_permissions_based_on_blogger arguments args NameParam self defaults body Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str read Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Post Expr Call AttributeLoad NameLoad frappe attr set_user Str test1@example.com Expr Call NameLoad add Str test2@example.com Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad doc attr has_permission Str read Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str read decorator_list FunctionDef test_set_only_once arguments args NameParam self defaults body Assign NameStore blog_post Call AttributeLoad NameLoad frappe attr get_meta Str Blog-Post Assign AttributeStore Call AttributeLoad NameLoad blog_post attr get_field Str title attr set_only_once Num 1 Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-1 Assign AttributeStore NameLoad doc attr title Str New Expr Call AttributeLoad NameLoad self attr assertRaises AttributeLoad NameLoad frappe attr CannotChangeConstantError AttributeLoad NameLoad doc attr save Assign AttributeStore Call AttributeLoad NameLoad blog_post attr get_field Str title attr set_only_once Num 0 decorator_list FunctionDef test_user_permission_doctypes arguments args NameParam self defaults body Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category-1 Str test2@example.com Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blogger Str _Test-Blogger-1 Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blogger Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad frappe attr model attr meta attr clear_cache Str Blog-Post Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad doc attr has_permission Str read Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Str Blog-Post Str _test-blog-post-2 Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str read Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad frappe attr model attr meta attr clear_cache Str Blog-Post decorator_list FunctionDef if_owner_setup arguments args NameParam self defaults body Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-if_owner=1where-parent='Blog-Post'-and-permlevel=0-and-permlevel=0-and-role='Blogger' Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category-1 Str test2@example.com Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blogger Str _Test-Blogger-1 Str test2@example.com Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-user_permission_doctypes=%swhere-parent='Blog-Post'-and-permlevel=0-and-apply_user_permissions=1and-`read`=1 Call AttributeLoad NameLoad json attr dumps ListLoad Str Blog-Category Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad frappe attr model attr meta attr clear_cache Str Blog-Post decorator_list FunctionDef set_user_permission_doctypes arguments args NameParam self NameParam user_permission_doctypes defaults body Expr Call NameLoad set_user_permission_doctypes keyword doctype Str Blog-Post keyword role Str Blogger keyword apply_user_permissions Num 1 keyword user_permission_doctypes NameLoad user_permission_doctypes decorator_list FunctionDef test_insert_if_owner_with_user_permissions arguments args NameParam self defaults body Expr Str If-`If-Owner`-is-checked-for-a-Role,-check-if-that-document-is-allowed-to-be-read,-updated,-submitted,-etc.-except-be-created,-even-if-the-document-is-restricted-based-on-User-Permissions. Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Category Expr Call AttributeLoad NameLoad self attr if_owner_setup Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Dict Str doctype Str blog_category Str blogger Str title Str content Str Blog-Post Str _Test-Blog-Category Str _Test-Blogger-1 Str _Test-Blog-Post-Title Str _Test-Blog-Post-Content Expr Call AttributeLoad NameLoad self attr assertRaises AttributeLoad NameLoad frappe attr PermissionError AttributeLoad NameLoad doc attr insert Expr Call AttributeLoad NameLoad frappe attr set_user Str Administrator Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Expr Call AttributeLoad NameLoad doc attr insert Expr Call AttributeLoad NameLoad frappe attr set_user Str Administrator Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr remove_user_permission Str Blog-Category Str _Test-Blog-Category Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc AttributeLoad NameLoad doc attr doctype AttributeLoad NameLoad doc attr name Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str read Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str write Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad doc attr has_permission Str create decorator_list FunctionDef test_ignore_user_permissions_if_missing arguments args NameParam self defaults body Expr Str If-`Ignore-User-Permissions-If-Missing`-is-checked-in-System-Settings,-show-records-even-if-User-Permissions-are-missing-for-a-linked-doctype Expr Call AttributeLoad NameLoad self attr set_user_permission_doctypes ListLoad Str Blog-Category Str Blog-Post Str Blogger Expr Call AttributeLoad NameLoad frappe attr set_user Str Administrator Expr Call AttributeLoad AttributeLoad NameLoad frappe attr permissions attr add_user_permission Str Blog-Category Str _Test-Blog-Category Str test2@example.com Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Assign NameStore doc Call AttributeLoad NameLoad frappe attr get_doc Dict Str doctype Str blog_category Str blogger Str title Str content Str Blog-Post Str _Test-Blog-Category Str _Test-Blogger-1 Str _Test-Blog-Post-Title Str _Test-Blog-Post-Content Expr Call AttributeLoad NameLoad self attr assertFalse Call AttributeLoad NameLoad doc attr has_permission Str write Expr Call AttributeLoad NameLoad frappe attr set_user Str Administrator Expr Call AttributeLoad NameLoad self attr set_ignore_user_permissions_if_missing Num 1 Expr Call AttributeLoad NameLoad frappe attr set_user Str test2@example.com Expr Call AttributeLoad NameLoad self attr assertTrue Call AttributeLoad NameLoad doc attr has_permission Str write decorator_list decorator_list FunctionDef set_user_permission_doctypes arguments args NameParam doctype NameParam role NameParam apply_user_permissions NameParam user_permission_doctypes defaults body Assign NameStore user_permission_doctypes IfExp UnaryOpNot NameLoad user_permission_doctypes NameLoad None Call AttributeLoad NameLoad json attr dumps NameLoad user_permission_doctypes Expr Call AttributeLoad AttributeLoad NameLoad frappe attr db attr sql Str update-`tabDocPerm`-set-apply_user_permissions=%(apply_user_permissions)s,user_permission_doctypes=%(user_permission_doctypes)swhere-parent=%(doctype)s-and-permlevel=0and-`read`=1-and-role=%(role)s Dict Str apply_user_permissions Str user_permission_doctypes Str doctype Str role NameLoad apply_user_permissions NameLoad user_permission_doctypes NameLoad doctype NameLoad role Expr Call AttributeLoad NameLoad frappe attr clear_cache keyword doctype NameLoad doctype decorator_list 
Module ImportFrom __future__ alias unicode_literals ImportFrom django alias forms alias http ImportFrom django.conf alias settings ImportFrom django.db alias models ImportFrom django.test alias TestCase ImportFrom django.template.response alias TemplateResponse ImportFrom django.utils.importlib alias import_module ImportFrom django.contrib.auth.models alias User ImportFrom django.contrib.formtools.wizard.views alias WizardView alias SessionWizardView alias CookieWizardView ClassDef DummyRequest bases AttributeLoad NameLoad http attr HttpRequest body FunctionDef __init__ arguments args NameParam self NameParam POST defaults NameLoad None body Expr Call AttributeLoad Call NameLoad super NameLoad DummyRequest NameLoad self attr __init__ Assign AttributeStore NameLoad self attr method IfExp NameLoad POST Str POST Str GET If CompareIsNot NameLoad POST NameLoad None body Expr Call AttributeLoad AttributeLoad NameLoad self attr POST attr update NameLoad POST Assign AttributeStore NameLoad self attr session Dict Assign AttributeStore NameLoad self attr _dont_enforce_csrf_checks NameLoad True decorator_list decorator_list FunctionDef get_request arguments args defaults vararg args kwarg kwargs body Assign NameStore request Call NameLoad DummyRequest NameLoad args NameLoad kwargs Assign NameStore engine Call NameLoad import_module AttributeLoad NameLoad settings attr SESSION_ENGINE Assign AttributeStore NameLoad request attr session Call AttributeLoad NameLoad engine attr SessionStore NameLoad None Return NameLoad request decorator_list ClassDef Step1 bases AttributeLoad NameLoad forms attr Form body Assign NameStore name Call AttributeLoad NameLoad forms attr CharField decorator_list ClassDef Step2 bases AttributeLoad NameLoad forms attr Form body Assign NameStore name Call AttributeLoad NameLoad forms attr CharField decorator_list ClassDef Step3 bases AttributeLoad NameLoad forms attr Form body Assign NameStore data Call AttributeLoad NameLoad forms attr CharField decorator_list ClassDef CustomKwargsStep1 bases NameLoad Step1 body FunctionDef __init__ arguments args NameParam self NameParam test defaults NameLoad None vararg args kwarg kwargs body Assign AttributeStore NameLoad self attr test NameLoad test Return Call AttributeLoad Call NameLoad super NameLoad CustomKwargsStep1 NameLoad self attr __init__ NameLoad args NameLoad kwargs decorator_list decorator_list ClassDef TestModel bases AttributeLoad NameLoad models attr Model body Assign NameStore name Call AttributeLoad NameLoad models attr CharField keyword max_length Num 100 ClassDef Meta bases body Assign NameStore app_label Str formtools decorator_list decorator_list ClassDef TestModelForm bases AttributeLoad NameLoad forms attr ModelForm body ClassDef Meta bases body Assign NameStore model NameLoad TestModel Assign NameStore fields Str __all__ decorator_list decorator_list Assign NameStore TestModelFormSet Call AttributeLoad AttributeLoad NameLoad forms attr models attr modelformset_factory NameLoad TestModel keyword form NameLoad TestModelForm keyword extra Num 2 keyword fields Str __all__ ClassDef TestWizard bases NameLoad WizardView body Assign NameStore storage_name Str django.contrib.formtools.wizard.storage.session.SessionStorage FunctionDef dispatch arguments args NameParam self NameParam request defaults vararg args kwarg kwargs body Assign NameStore response Call AttributeLoad Call NameLoad super NameLoad TestWizard NameLoad self attr dispatch NameLoad request NameLoad args NameLoad kwargs Return TupleLoad NameLoad response NameLoad self decorator_list FunctionDef get_form_kwargs arguments args NameParam self NameParam step defaults vararg args kwarg kwargs body Assign NameStore kwargs Call AttributeLoad Call NameLoad super NameLoad TestWizard NameLoad self attr get_form_kwargs NameLoad step NameLoad args NameLoad kwargs If CompareEq NameLoad step Str kwargs_test body Assign SubscriptStore NameLoad kwargs Index Str test NameLoad True Return NameLoad kwargs decorator_list decorator_list ClassDef TestWizardWithInitAttrs bases NameLoad TestWizard body Assign NameStore form_list ListLoad NameLoad Step1 NameLoad Step2 Assign NameStore condition_dict Dict Str step2 NameLoad True Assign NameStore initial_dict Dict Str start Dict Str name Str value1 Assign NameStore instance_dict Dict Str start Call NameLoad User decorator_list ClassDef FormTests bases NameLoad TestCase body FunctionDef test_form_init arguments args NameParam self defaults body Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr get_initkwargs ListLoad NameLoad Step1 NameLoad Step2 Expr Call AttributeLoad NameLoad self attr assertEqual SubscriptLoad NameLoad testform Index Str form_list Dict Str 0 Str 1 NameLoad Step1 NameLoad Step2 Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr get_initkwargs ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Expr Call AttributeLoad NameLoad self attr assertEqual SubscriptLoad NameLoad testform Index Str form_list Dict Str start Str step2 NameLoad Step1 NameLoad Step2 Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr get_initkwargs ListLoad NameLoad Step1 NameLoad Step2 TupleLoad Str finish NameLoad Step3 Expr Call AttributeLoad NameLoad self attr assertEqual SubscriptLoad NameLoad testform Index Str form_list Dict Str 0 Str 1 Str finish NameLoad Step1 NameLoad Step2 NameLoad Step3 Assign NameStore testform Call AttributeLoad NameLoad TestWizardWithInitAttrs attr get_initkwargs Expr Call AttributeLoad NameLoad self attr assertEqual SubscriptLoad NameLoad testform Index Str form_list Dict Str 0 Str 1 NameLoad Step1 NameLoad Step2 decorator_list FunctionDef test_first_step arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad NameLoad Step1 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad AttributeLoad NameLoad instance attr steps attr current Str 0 Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad AttributeLoad NameLoad instance attr steps attr current Str start decorator_list FunctionDef test_persistence arguments args NameParam self defaults body Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign NameStore request Call NameLoad get_request Dict Str test_wizard-current_step Str name Str start Str data1 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad AttributeLoad NameLoad instance attr steps attr current Str start Assign AttributeStore AttributeLoad NameLoad instance attr storage attr current_step Str step2 Assign NameStore testform2 Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign AttributeStore NameLoad request attr POST Dict Str test_wizard-current_step Str step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform2 NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad AttributeLoad NameLoad instance attr steps attr current Str step2 decorator_list FunctionDef test_form_condition arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 TupleLoad Str step3 NameLoad Step3 keyword condition_dict Dict Str step2 NameLoad True Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_next_step Str step2 Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 TupleLoad Str step3 NameLoad Step3 keyword condition_dict Dict Str step2 NameLoad False Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_next_step Str step3 Assign NameStore testform Call AttributeLoad NameLoad TestWizardWithInitAttrs attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 TupleLoad Str step3 NameLoad Step3 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_next_step Str step2 decorator_list FunctionDef test_form_kwargs arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str kwargs_test NameLoad CustomKwargsStep1 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_kwargs Str start Dict Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_kwargs Str kwargs_test Dict Str test NameLoad True Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad Call AttributeLoad NameLoad instance attr get_form Str kwargs_test attr test NameLoad True decorator_list FunctionDef test_form_prefix arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_prefix Str start Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_prefix Str another Str another decorator_list FunctionDef test_form_initial arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 keyword initial_dict Dict Str start Dict Str name Str value1 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_initial Str start Dict Str name Str value1 Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_initial Str step2 Dict Assign NameStore testform Call AttributeLoad NameLoad TestWizardWithInitAttrs attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_initial Str start Dict Str name Str value1 Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_initial Str step2 Dict decorator_list FunctionDef test_form_instance arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore the_instance Call NameLoad TestModel Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad TestModelForm TupleLoad Str step2 NameLoad Step2 keyword instance_dict Dict Str start NameLoad the_instance Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_instance Str start NameLoad the_instance Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_instance Str non_exist_instance NameLoad None Assign NameStore testform Call AttributeLoad NameLoad TestWizardWithInitAttrs attr as_view ListLoad TupleLoad Str start NameLoad TestModelForm TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_instance Str start SubscriptLoad AttributeLoad NameLoad TestWizardWithInitAttrs attr instance_dict Index Str start decorator_list FunctionDef test_formset_instance arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign TupleStore NameStore the_instance1 NameStore created Call AttributeLoad AttributeLoad NameLoad TestModel attr objects attr get_or_create keyword name Str test-object-1 Assign TupleStore NameStore the_instance2 NameStore created Call AttributeLoad AttributeLoad NameLoad TestModel attr objects attr get_or_create keyword name Str test-object-2 Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad TestModelFormSet TupleLoad Str step2 NameLoad Step2 keyword instance_dict Dict Str start Call AttributeLoad AttributeLoad NameLoad TestModel attr objects attr filter keyword name Str test-object-1 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertEqual Call NameLoad list Call AttributeLoad NameLoad instance attr get_form_instance Str start ListLoad NameLoad the_instance1 Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad NameLoad instance attr get_form_instance Str non_exist_instance NameLoad None Expr Call AttributeLoad NameLoad self attr assertEqual Call AttributeLoad Call AttributeLoad NameLoad instance attr get_form attr initial_form_count Num 1 decorator_list FunctionDef test_done arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad self attr assertRaises NameLoad NotImplementedError AttributeLoad NameLoad instance attr done NameLoad None decorator_list FunctionDef test_revalidation arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad TestWizard attr as_view ListLoad TupleLoad Str start NameLoad Step1 TupleLoad Str step2 NameLoad Step2 Assign TupleStore NameStore response NameStore instance Call NameLoad testform NameLoad request Expr Call AttributeLoad NameLoad instance attr render_done NameLoad None Expr Call AttributeLoad NameLoad self attr assertEqual AttributeLoad AttributeLoad NameLoad instance attr storage attr current_step Str start decorator_list decorator_list ClassDef SessionFormTests bases NameLoad TestCase body FunctionDef test_init arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad SessionWizardView attr as_view ListLoad TupleLoad Str start NameLoad Step1 Expr Call AttributeLoad NameLoad self attr assertTrue Call NameLoad isinstance Call NameLoad testform NameLoad request NameLoad TemplateResponse decorator_list decorator_list ClassDef CookieFormTests bases NameLoad TestCase body FunctionDef test_init arguments args NameParam self defaults body Assign NameStore request Call NameLoad get_request Assign NameStore testform Call AttributeLoad NameLoad CookieWizardView attr as_view ListLoad TupleLoad Str start NameLoad Step1 Expr Call AttributeLoad NameLoad self attr assertTrue Call NameLoad isinstance Call NameLoad testform NameLoad request NameLoad TemplateResponse decorator_list decorator_list 
