Module ImportFrom alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ClassDef bases NameLoad NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Num With Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Dict Str Str attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword Dict Str Str attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword Str keyword Str attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword NameLoad attr Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Str Str attr Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Dict Str Str attr Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Dict Str Str Str Str attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A datetime datetime timedelta N/A os N/A uuid django.conf settings django.test TestCase mock patch couchdbkit RequestFailed casexml.apps.case.mock CaseBlock corehq.apps.hqcase.utils submit_case_blocks corehq.apps.receiverwrapper submit_form_locally corehq.form_processor.interfaces.dbaccessors CaseAccessors FormAccessors couchforms.models UnfinishedSubmissionStub corehq.form_processor.interfaces.processor FormProcessorInterface corehq.form_processor.tests.utils FormProcessorTestUtils run_with_all_backends post_xform corehq.util.test_utils TestFileMixin EditFormTest N/A TestCase TestFileMixin N/A N/A ID 7H46J37FGH3 N/A domain test-form-edits N/A file_path N/A data deprecation N/A root N/A N/A N/A os path dirname __file__ setUp N/A N/A self N/A N/A N/A N/A self interface N/A FormProcessorInterface N/A self domain N/A N/A self casedb N/A CaseAccessors N/A self domain N/A N/A self formdb N/A FormAccessors N/A self domain N/A tearDown N/A N/A self N/A N/A N/A N/A N/A FormProcessorTestUtils delete_all_xforms N/A self domain N/A N/A N/A FormProcessorTestUtils delete_all_cases N/A self domain N/A N/A N/A N/A N/A N/A UnfinishedSubmissionStub objects all delete N/A test_basic_edit N/A N/A self N/A N/A N/A original_xml N/A N/A self get_xml original N/A edit_xml N/A N/A self get_xml edit N/A xform N/A post_xform original_xml domain N/A self domain N/A N/A N/A self assertEqual N/A self ID N/A xform form_id N/A N/A N/A self assertTrue N/A xform is_normal N/A N/A N/A self assertEqual N/A N/A N/A xform form_data N/A vitals N/A height N/A N/A N/A self assertEqual other N/A N/A N/A xform form_data N/A assessment N/A categories N/A xform N/A post_xform edit_xml domain N/A self domain N/A N/A N/A self assertEqual N/A self ID N/A xform form_id N/A N/A N/A self assertTrue N/A xform is_normal N/A N/A N/A self assertEqual 100 N/A N/A N/A xform form_data N/A vitals N/A height N/A N/A N/A self assertEqual Edited Baby! N/A N/A N/A xform form_data N/A assessment N/A categories N/A deprecated_xform N/A N/A N/A self formdb get_form N/A xform deprecated_form_id N/A N/A N/A self assertEqual N/A self ID N/A deprecated_xform orig_id N/A N/A N/A self assertNotEqual N/A self ID N/A deprecated_xform form_id N/A N/A N/A self assertTrue N/A deprecated_xform is_deprecated N/A N/A N/A self assertEqual N/A N/A N/A deprecated_xform form_data N/A vitals N/A height N/A N/A N/A self assertEqual other N/A N/A N/A deprecated_xform form_data N/A assessment N/A categories N/A N/A N/A self assertEqual N/A xform received_on N/A deprecated_xform received_on N/A N/A N/A self assertEqual N/A xform deprecated_form_id N/A deprecated_xform form_id N/A N/A N/A self assertTrue N/A N/A xform edited_on N/A deprecated_xform received_on N/A N/A N/A self assertEqual N/A N/A deprecated_xform get_xml original_xml N/A N/A N/A self assertEqual N/A N/A xform get_xml edit_xml N/A run_with_all_backends test_broken_save N/A N/A self N/A N/A N/A 
        Test that if the second form submission terminates unexpectedly
        and the main form isn't saved, then there are no side effects
        such as the original having been marked as deprecated.
         N/A original_xml N/A N/A self get_xml original N/A edit_xml N/A N/A self get_xml edit N/A N/A _ xform _ N/A submit_form_locally original_xml N/A self domain N/A N/A N/A self assertEqual N/A self ID N/A xform form_id N/A N/A N/A self assertTrue N/A xform is_normal N/A N/A N/A self assertEqual N/A self domain N/A xform domain N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A UnfinishedSubmissionStub objects filter xform_id N/A self ID count 0 N/A N/A N/A patch object N/A N/A self interface processor save_processed_models side_effect RequestFailed N/A N/A N/A N/A self assertRaises RequestFailed N/A N/A N/A submit_form_locally edit_xml N/A self domain N/A N/A N/A self assertIsNone N/A getattr xform deprecated_form_id None N/A xform N/A N/A N/A self formdb get_form N/A self ID N/A N/A N/A self assertIsNotNone xform N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A UnfinishedSubmissionStub objects filter xform_id N/A self ID saved False count 1 N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A UnfinishedSubmissionStub objects filter xform_id N/A self ID count 1 N/A run_with_all_backends test_case_management N/A N/A self N/A N/A N/A form_id N/A N/A N/A uuid uuid4 hex N/A case_id N/A N/A N/A uuid uuid4 hex N/A owner_id N/A N/A N/A uuid uuid4 hex N/A case_block N/A N/A N/A CaseBlock create True case_id case_id case_type person owner_id owner_id update N/A property original value as_string N/A N/A submit_case_blocks case_block domain N/A self domain form_id form_id N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A case type person N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A property original value N/A N/A N/A self assertEqual N/A form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual 2 N/A len N/A case actions N/A a N/A case actions N/A N/A N/A N/A self assertEqual form_id N/A a xform_id N/A case_block N/A N/A N/A CaseBlock create True case_id case_id case_type newtype owner_id owner_id update N/A property edited value as_string N/A N/A submit_case_blocks case_block domain N/A self domain form_id form_id N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A case type newtype N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A property edited value N/A N/A N/A self assertEqual N/A form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual 2 N/A len N/A case actions N/A a N/A case actions N/A N/A N/A N/A self assertEqual form_id N/A a xform_id N/A run_with_all_backends test_second_edit_fails N/A N/A self N/A N/A N/A form_id N/A N/A N/A uuid uuid4 hex N/A case_id N/A N/A N/A uuid uuid4 hex N/A case_block N/A N/A N/A CaseBlock create True case_id case_id case_type person as_string N/A N/A submit_case_blocks case_block domain N/A self domain form_id form_id N/A case_block N/A N/A N/A CaseBlock create True case_id case_type person as_string N/A N/A submit_case_blocks case_block domain N/A self domain form_id form_id N/A xform N/A N/A N/A self formdb get_form form_id N/A N/A N/A self assertTrue N/A xform is_error N/A deprecated_xform N/A N/A N/A self formdb get_form N/A xform deprecated_form_id N/A N/A N/A self assertTrue N/A deprecated_xform is_deprecated N/A run_with_all_backends test_case_management_ordering N/A N/A self N/A N/A N/A case_id N/A N/A N/A uuid uuid4 hex N/A owner_id N/A N/A N/A uuid uuid4 hex N/A case_block N/A N/A N/A CaseBlock create True case_id case_id case_type person owner_id owner_id as_string N/A create_form_id N/A submit_case_blocks case_block domain N/A self domain N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A create_form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual N/A create_form_id N/A N/A a xform_id N/A a N/A case actions N/A a N/A case actions N/A N/A N/A N/A self assertEqual create_form_id N/A a xform_id N/A edit_date N/A N/A datetime utcnow N/A case_block N/A N/A N/A CaseBlock create False case_id case_id date_modified edit_date update N/A property first value as_string N/A edit_form_id N/A submit_case_blocks case_block domain N/A self domain N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A property first value N/A N/A N/A self assertEqual N/A create_form_id edit_form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual N/A create_form_id edit_form_id N/A N/A a xform_id N/A a N/A case actions N/A case_block N/A N/A N/A CaseBlock create False case_id case_id update N/A property final value as_string N/A second_edit_form_id N/A submit_case_blocks case_block domain N/A self domain N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A property final value N/A N/A N/A self assertEqual N/A create_form_id edit_form_id second_edit_form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual N/A create_form_id edit_form_id second_edit_form_id N/A N/A a xform_id N/A a N/A case actions N/A case_block N/A N/A N/A CaseBlock create False case_id case_id date_modified edit_date update N/A property added_property edited value added value as_string N/A N/A submit_case_blocks case_block domain N/A self domain form_id edit_form_id N/A case N/A N/A N/A self casedb get_case case_id N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A property final value N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A added_property added value N/A N/A N/A self assertEqual N/A create_form_id edit_form_id second_edit_form_id N/A case xform_ids N/A N/A N/A settings TESTS_SHOULD_USE_SQL_BACKEND N/A N/A N/A N/A self assertEqual N/A create_form_id edit_form_id second_edit_form_id N/A N/A a xform_id N/A a N/A case actions N/A run_with_all_backends N/A