#NEWLINE# def test_case_list_form_parent_child_submodule_advanced_rename_case_var( self ) : #NEWLINE# #INDENT# "Test that the session vars in the entries for the submodule get updated\n        to match the parent (and to avoid naming conflicts).\n        m3-f0: 'case_id_load_house' -> 'case_id_load_house_renamed'\n        m3-f0: 'case_id_load_house_renamed' -> 'case_id_load_house_renamed_person'\n        " #NEWLINE# factory = AppFactory ( build_version = '2.9' ) #NEWLINE# ( register_house_module , register_house_form ) = factory . new_basic_module ( 'register_house' , 'house' ) #NEWLINE# factory . form_opens_case ( register_house_form ) #NEWLINE# ( register_person_module , register_person_form ) = factory . new_advanced_module ( 'register_person' , 'person' ) #NEWLINE# factory . form_requires_case ( register_person_form , 'house' ) #NEWLINE# factory . form_opens_case ( register_person_form , 'person' , is_subcase = True ) #NEWLINE# ( house_module , update_house_form ) = factory . new_advanced_module ( 'update_house' , 'house' , case_list_form = register_house_form ) #NEWLINE# factory . form_requires_case ( update_house_form ) #NEWLINE# update_house_form . actions . load_update_cases [ 0 ] . case_tag = 'load_house_renamed' #NEWLINE# ( person_module , update_person_form ) = factory . new_advanced_module ( 'update_person' , 'person' , parent_module = house_module , case_list_form = register_house_module ) #NEWLINE# factory . form_requires_case ( update_person_form , 'house' ) #NEWLINE# factory . form_requires_case ( update_person_form , 'person' , parent_case_type = 'house' ) #NEWLINE# update_person_form . actions . load_update_cases [ 1 ] . case_tag = 'load_house_renamed' #NEWLINE# self . assertXmlEqual ( self . get_xml ( 'case-list-form-suite-parent-child-submodule-advanced-rename-var' ) , factory . app . create_suite ( ) )