Module Import alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad keyword Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore TupleLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad For NameStore ListLoad Str Str body Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Assign TupleStore NameStore NameStore ListStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr decorator_list Expr Call NameLoad Dict Str NameLoad Expr Call NameLoad Dict Str NameLoad Expr Call NameLoad Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore ListStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore ListStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore ListStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign TupleStore NameStore ListStore NameStore Call NameLoad ListLoad Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword Dict Str Str attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore ListStore NameStore Call NameLoad ListLoad Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword Str keyword Dict Str Str attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list Call NameLoad keyword NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign ListStore NameStore Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str keyword ListLoad Call NameLoad Call NameLoad keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign ListStore NameStore Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str keyword ListLoad Call NameLoad Call NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign ListStore NameStore Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str keyword ListLoad Call NameLoad Call NameLoad keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str keyword ListLoad Call NameLoad Call NameLoad keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword Dict Str Str keyword ListLoad Call NameLoad Call NameLoad keyword Str keyword Str keyword Str Call NameLoad Call NameLoad keyword Str keyword Str keyword NameLoad Assign NameStore Dict Str Dict Str ListLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str decorator_list NameLoad decorator_list
N/A N/A uuid couchdbkit.exceptions BulkSaveError django.test TestCase SimpleTestCase N/A os django.test.utils override_settings casexml.apps.case.const CASE_INDEX_EXTENSION casexml.apps.case.mock CaseBlock CaseFactory CaseStructure CaseIndex casexml.apps.case.models CommCareCase casexml.apps.case.templatetags.case_tags get_case_hierarchy casexml.apps.case.tests.util delete_all_cases casexml.apps.case.util post_case_blocks casexml.apps.case.xml V2 V1 corehq.apps.receiverwrapper submit_form_locally corehq.form_processor.tests.utils run_with_all_backends corehq.util.test_utils TestFileMixin SimpleCaseBugTests N/A SimpleTestCase N/A test_generate_xml_with_no_date_modified N/A N/A self N/A N/A N/A version N/A V1 V2 N/A N/A N/A N/A N/A CommCareCase _id test to_xml version N/A N/A CaseBugTest N/A TestCase TestFileMixin N/A N/A 
    Tests bugs that come up in case processing
     N/A file_path N/A data bugs 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 delete_all_cases N/A test_conflicting_ids N/A N/A self N/A N/A N/A 
        If a form and a case share an ID it's a conflict
         N/A xml_data N/A N/A self get_xml id_conflicts N/A N/A N/A self assertRaises BulkSaveError N/A N/A N/A submit_form_locally xml_data test-domain N/A test_empty_case_id N/A N/A self N/A N/A N/A 
        Ensure that form processor fails on empty id
         N/A xml_data N/A N/A self get_xml empty_id N/A N/A response form cases N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertIn IllegalCaseId N/A response content N/A run_with_all_backends _testCornerCaseDatatypeBugs N/A N/A self value N/A N/A _test N/A N/A custom_format_args N/A N/A N/A case_id N/A N/A N/A uuid uuid4 hex N/A format_args N/A case_id user_id case_name case_type case_id N/A N/A N/A uuid uuid4 hex data corner cases datatype-check N/A N/A N/A format_args update custom_format_args N/A filename N/A bugs_in_case_create_datatypes bugs_in_case_update_datatypes N/A N/A N/A format_args N/A form_id N/A N/A N/A N/A uuid uuid4 hex N/A xml_data N/A N/A N/A N/A self get_xml filename format format_args N/A N/A response form N/A case N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertEqual N/A format_args N/A user_id N/A case user_id N/A N/A N/A self assertEqual N/A format_args N/A case_name N/A case name N/A N/A N/A self assertEqual N/A format_args N/A case_type N/A case type N/A N/A N/A _test N/A case_name value N/A N/A _test N/A case_type value N/A N/A _test N/A user_id value N/A testDateInCasePropertyBug N/A N/A self N/A N/A N/A 
        Submits a case name/case type/user_id that looks like a date
         N/A N/A N/A self _testCornerCaseDatatypeBugs 2011-11-16 N/A run_with_all_backends testIntegerInCasePropertyBug N/A N/A self N/A N/A N/A 
        Submits a case name/case type/user_id that looks like a number
         N/A N/A N/A self _testCornerCaseDatatypeBugs 42 N/A run_with_all_backends testDecimalInCasePropertyBug N/A N/A self N/A N/A N/A 
        Submits a case name/case type/user_id that looks like a decimal
         N/A N/A N/A self _testCornerCaseDatatypeBugs 4.06 N/A run_with_all_backends testDuplicateCasePropertiesBug N/A N/A self N/A N/A N/A 
        Submit multiple values for the same property in an update block
         N/A xml_data N/A N/A self get_xml duplicate_case_properties N/A N/A response form N/A case N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertEqual N/A N/A N/A case dynamic_case_properties N/A foo N/A xml_data N/A N/A self get_xml duplicate_case_properties_2 N/A N/A response form N/A case N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertEqual 2 N/A N/A N/A case dynamic_case_properties N/A bar N/A run_with_all_backends testMultipleCaseBlocks N/A N/A self N/A N/A N/A 
        How do we do when submitting a form with multiple blocks for the same case?
         N/A xml_data N/A N/A self get_xml multiple_case_blocks N/A N/A response form N/A case N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertEqual 1630005 N/A N/A N/A case dynamic_case_properties N/A community_code N/A N/A N/A self assertEqual SantaMariaCahabon N/A N/A N/A case dynamic_case_properties N/A district_name N/A N/A N/A self assertEqual TAMERLO N/A N/A N/A case dynamic_case_properties N/A community_name N/A ids N/A case xform_ids N/A N/A N/A self assertEqual 1 N/A len ids N/A N/A N/A self assertEqual N/A form form_id N/A ids N/A 0 N/A run_with_all_backends testLotsOfSubcases N/A N/A self N/A N/A N/A 
        How do we do when submitting a form with multiple blocks for the same case?
         N/A xml_data N/A N/A self get_xml lots_of_subcases N/A N/A response form cases N/A submit_form_locally xml_data test-domain N/A N/A N/A self assertEqual 11 N/A len cases N/A run_with_all_backends testSubmitToDeletedCase N/A N/A self N/A N/A N/A case_id immagetdeleted N/A N/A xform N/A case N/A post_case_blocks N/A N/A N/A N/A CaseBlock create True case_id case_id user_id whatever update N/A foo bar as_xml N/A N/A N/A case soft_delete N/A N/A N/A self assertEqual bar N/A N/A N/A case dynamic_case_properties N/A foo N/A N/A N/A self assertTrue N/A case is_deleted N/A N/A xform N/A case N/A post_case_blocks N/A N/A N/A N/A CaseBlock create False case_id case_id user_id whatever update N/A foo not_bar as_xml N/A N/A N/A self assertEqual not_bar N/A N/A N/A case dynamic_case_properties N/A foo N/A N/A N/A self assertTrue N/A case is_deleted N/A run_with_all_backends N/A N/A override_settings CASEXML_FORCE_DOMAIN_CHECK False TestCaseHierarchy N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A delete_all_cases N/A test_normal_index N/A N/A self N/A N/A N/A factory N/A CaseFactory N/A N/A cp N/A N/A factory create_or_update_case N/A CaseStructure case_id parent attrs N/A case_type parent N/A N/A N/A factory create_or_update_case N/A CaseStructure case_id child attrs N/A case_type child indices N/A N/A CaseIndex N/A CaseStructure case_id parent related_type parent walk_related False N/A hierarchy N/A get_case_hierarchy cp N/A N/A N/A N/A self assertEqual 2 N/A len N/A hierarchy N/A case_list N/A N/A N/A self assertEqual 1 N/A len N/A hierarchy N/A child_cases N/A run_with_all_backends test_extension_index N/A N/A self N/A N/A N/A factory N/A CaseFactory N/A N/A case N/A N/A factory create_or_update_case N/A CaseStructure case_id standard_case attrs N/A case_type standard_type N/A N/A N/A factory create_or_update_case N/A CaseStructure case_id extension_case attrs N/A case_type extension_type indices N/A N/A CaseIndex N/A CaseStructure case_id standard_case related_type standard_type relationship CASE_INDEX_EXTENSION walk_related False N/A hierarchy N/A get_case_hierarchy case N/A N/A N/A N/A self assertEqual 2 N/A len N/A hierarchy N/A case_list N/A N/A N/A self assertEqual 1 N/A len N/A hierarchy N/A child_cases N/A run_with_all_backends test_recursive_indexes N/A N/A self N/A N/A N/A factory N/A CaseFactory N/A N/A case N/A N/A factory create_or_update_case N/A CaseStructure case_id infinite-recursion attrs N/A case_type bug indices N/A N/A CaseIndex N/A CaseStructure case_id infinite-recursion related_type bug walk_related False N/A hierarchy N/A get_case_hierarchy case N/A N/A N/A N/A self assertEqual 1 N/A len N/A hierarchy N/A case_list N/A run_with_all_backends test_complex_index N/A N/A self N/A N/A N/A factory N/A CaseFactory N/A cp N/A N/A N/A factory create_or_update_case N/A CaseStructure case_id parent attrs N/A case_type parent N/A 0 N/A N/A N/A factory create_or_update_case N/A CaseStructure case_id z_goal attrs N/A case_type goal indices N/A N/A CaseIndex N/A CaseStructure case_id parent related_type parent walk_related False N/A N/A N/A factory create_or_update_case N/A CaseStructure case_id task1 attrs N/A case_type task indices N/A N/A CaseIndex N/A CaseStructure case_id z_goal related_type goal identifier goal N/A CaseIndex N/A CaseStructure case_id parent related_type parent walk_related False N/A type_info N/A task N/A ignore_relationship_types N/A parent N/A hierarchy N/A get_case_hierarchy cp type_info N/A N/A N/A self assertEqual 3 N/A len N/A hierarchy N/A case_list N/A N/A N/A self assertEqual 1 N/A len N/A hierarchy N/A child_cases N/A N/A N/A self assertEqual 2 N/A len N/A N/A N/A hierarchy N/A child_cases N/A 0 N/A case_list N/A N/A N/A self assertEqual 1 N/A len N/A N/A N/A hierarchy N/A child_cases N/A 0 N/A child_cases N/A run_with_all_backends N/A