Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore TupleLoad TupleLoad Call NameLoad keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword Call AttributeLoad NameLoad attr Num Num Num Num Num Num keyword Str keyword Str keyword Str keyword ListLoad keyword Dict Str Call NameLoad keyword Str keyword NameLoad keyword Dict Str Str Num Num keyword Num keyword Str keyword Str keyword Str keyword NameLoad keyword Str keyword Str Dict Str Str Str FunctionDef arguments args NameParam NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return TupleLoad NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad NameLoad CompareIn NameLoad NameLoad body Return Call NameLoad SubscriptLoad NameLoad Index NameLoad orelse Raise Call NameLoad decorator_list With Call NameLoad Str NameLoad body Expr Yield decorator_list NameLoad ClassDef bases NameLoad NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameStore NameLoad body With Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr DictComp NameLoad Call AttributeLoad NameLoad attr comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr DictComp NameLoad Call AttributeLoad Call NameLoad NameLoad attr comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Expr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str attr Expr Call NameLoad ListLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword AttributeLoad Call AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str attr Expr Call NameLoad ListLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr 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 Str Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword Dict Str TupleLoad NameLoad NameLoad attr Expr Call NameLoad ListLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore DictComp AttributeLoad NameLoad attr NameLoad comprehension NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore ListComp AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad decorator_list NameLoad decorator_list
N/A N/A datetime N/A uuid contextlib contextmanager couchdbkit ResourceNotFound django.test SimpleTestCase TestCase mock patch casexml.apps.case.mock CaseBlock casexml.apps.case.models CommCareCase casexml.apps.case.sharedmodels CommCareCaseAttachment casexml.apps.case.tests.util delete_all_cases delete_all_xforms casexml.apps.case.xml V2 corehq.apps.app_manager.tests.util TestXmlMixin corehq.apps.hqcase.tasks explode_cases corehq.apps.hqcase.utils make_creating_casexml submit_case_blocks corehq.apps.users.models CommCareUser corehq.apps.domain.models Domain corehq.form_processor.interfaces.dbaccessors CaseAccessors corehq.form_processor.tests.utils run_with_all_backends N/A TESTS N/A N/A N/A CommCareCase _id case-abc123 domain foo type my_case closed False user_id user-abc123 modified_on N/A N/A datetime datetime 2011 12 20 0 11 2 owner_id group-abc123 name Jessica version 2.0 indices N/A case_attachments N/A fruity_file N/A CommCareCaseAttachment attachment_from local attachment_name None attachment_properties N/A width height 240 164 attachment_size 22731 attachment_src ./corehq/ex-submodules/casexml/apps/case/tests/data/attachments/fruity.jpg doc_type CommCareCaseAttachment identifier fruity_file server_md5 None server_mime image/jpeg age 25 N/A fruity_file ./corehq/ex-submodules/casexml/apps/case/tests/data/attachments/fruity.jpg 
        <case case_id="new-case-abc123" date_modified="2011-12-20T00:11:02.000000Z"
                user_id="user-abc123"
                xmlns="http://commcarehq.org/case/transaction/v2">
            <create>
                <case_type>my_case</case_type>
                <case_name>Jessica</case_name>
                <owner_id>group-abc123</owner_id>
            </create>
            <update>
                <age>25</age>
            </update>
            <attachment>
                <fruity_file from="local" src="./corehq/ex-submodules/casexml/apps/case/tests/data/attachments/fruity.jpg"/>
            </attachment>
        </case>
         mock_fetch_case_attachment N/A N/A case_id attachments N/A N/A MockCachedObject N/A object N/A __init__ N/A N/A self attachment_file N/A N/A N/A N/A self attachment_file attachment_file N/A get N/A N/A self N/A kwargs N/A N/A N/A None N/A open N/A self attachment_file N/A N/A get_cached_case_attachment N/A N/A domain _case_id attachment_id N/A N/A N/A N/A N/A case_id _case_id N/A attachment_id attachments N/A N/A N/A MockCachedObject N/A attachments N/A attachment_id N/A N/A N/A ResourceNotFound N/A N/A N/A patch corehq.apps.hqcase.utils.get_cached_case_attachment get_cached_case_attachment N/A N/A N/A N/A contextmanager ExplodeCasesTest N/A SimpleTestCase TestXmlMixin N/A N/A maxDiff 1000000 test_make_creating_casexml N/A N/A self N/A N/A N/A N/A input files output TESTS N/A N/A N/A mock_fetch_case_attachment N/A input case_id files N/A N/A N/A case_block attachments N/A make_creating_casexml mock-domain input new-case-abc123 N/A N/A N/A self assertXmlEqual case_block output N/A N/A N/A self assertDictEqual N/A key N/A N/A value read N/A N/A key value N/A N/A attachments items N/A value N/A N/A N/A open value read N/A N/A key value N/A N/A files items N/A N/A ExplodeCasesDbTest N/A TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A delete_all_cases N/A N/A cls domain N/A Domain name foo N/A N/A N/A N/A cls domain save N/A N/A cls user N/A N/A CommCareUser create N/A N/A cls domain name somebody password N/A N/A cls user_id N/A N/A cls user _id N/A classmethod setUp N/A N/A self N/A N/A N/A N/A self accessor N/A CaseAccessors N/A N/A self domain name N/A N/A delete_all_cases N/A N/A delete_all_xforms N/A tearDown N/A N/A self N/A N/A N/A N/A delete_all_cases N/A N/A delete_all_xforms N/A tearDownClass N/A N/A cls N/A N/A N/A N/A N/A N/A cls user delete N/A N/A N/A N/A cls domain delete N/A classmethod test_simple N/A N/A self N/A N/A N/A caseblock N/A N/A N/A CaseBlock create True case_id N/A N/A N/A uuid uuid4 hex user_id N/A self user_id owner_id N/A self user_id case_type exploder-type as_string N/A N/A submit_case_blocks N/A caseblock N/A N/A self domain name N/A N/A N/A self assertEqual 1 N/A len N/A N/A N/A self accessor get_case_ids_in_domain N/A N/A explode_cases N/A self user_id N/A N/A self domain name 10 N/A case_ids N/A N/A N/A self accessor get_case_ids_in_domain N/A cases_back N/A list N/A N/A N/A self accessor iter_cases case_ids N/A N/A N/A self assertEqual 10 N/A len cases_back N/A case cases_back N/A N/A N/A N/A self assertEqual N/A self user_id N/A case owner_id N/A run_with_all_backends test_skip_user_case N/A N/A self N/A N/A N/A caseblock N/A N/A N/A CaseBlock create True case_id N/A N/A N/A uuid uuid4 hex user_id N/A self user_id owner_id N/A self user_id case_type commcare-user as_string N/A N/A submit_case_blocks N/A caseblock N/A N/A self domain name N/A N/A N/A self assertEqual 1 N/A len N/A N/A N/A self accessor get_case_ids_in_domain N/A N/A explode_cases N/A self user_id N/A N/A self domain name 10 N/A case_ids N/A N/A N/A self accessor get_case_ids_in_domain N/A cases_back N/A list N/A N/A N/A self accessor iter_cases case_ids N/A N/A N/A self assertEqual 1 N/A len cases_back N/A case cases_back N/A N/A N/A N/A self assertEqual N/A self user_id N/A case owner_id N/A run_with_all_backends test_parent_child N/A N/A self N/A N/A N/A parent_id N/A N/A N/A uuid uuid4 hex N/A parent_type exploder-parent-type N/A parent_block N/A N/A N/A CaseBlock create True case_id parent_id user_id N/A self user_id owner_id N/A self user_id case_type parent_type as_string N/A child_id N/A N/A N/A uuid uuid4 hex N/A child_block N/A N/A N/A CaseBlock create True case_id child_id user_id N/A self user_id owner_id N/A self user_id case_type exploder-child-type index N/A parent N/A parent_type parent_id as_string N/A N/A submit_case_blocks N/A parent_block child_block N/A N/A self domain name N/A N/A N/A self assertEqual 2 N/A len N/A N/A N/A self accessor get_case_ids_in_domain N/A N/A explode_cases N/A self user_id N/A N/A self domain name 5 N/A case_ids N/A N/A N/A self accessor get_case_ids_in_domain N/A cases_back N/A list N/A N/A N/A self accessor iter_cases case_ids N/A N/A N/A self assertEqual 10 N/A len cases_back N/A parent_cases N/A N/A p case_id p N/A p N/A filter N/A N/A N/A case N/A N/A N/A case type parent_type cases_back N/A N/A N/A self assertEqual 5 N/A len parent_cases N/A child_cases N/A filter N/A N/A N/A case N/A N/A N/A case type exploder-child-type cases_back N/A N/A N/A self assertEqual 5 N/A len child_cases N/A child_indices N/A N/A N/A N/A child indices N/A 0 referenced_id N/A child child_cases N/A N/A N/A self assertEqual N/A len child_cases N/A len N/A set child_indices N/A child child_cases N/A N/A N/A N/A self assertEqual 1 N/A len N/A child indices N/A N/A N/A self assertTrue N/A N/A N/A N/A child indices N/A 0 referenced_id parent_cases N/A run_with_all_backends N/A