def test_target_module_different_datums(self):

        factory = AppFactory(build_version='2.9')
        registration_module, registration_form = factory.new_basic_module('registration', 'patient')

        factory.form_opens_case(registration_form)
        factory.form_uses_usercase(registration_form, preload={'username': '/data/username'})

        visit_module, visit_form = factory.new_basic_module(
            'visits',
            'patient',
            case_list_form=registration_form
        )

        factory.form_requires_case(visit_form)
        factory.form_opens_case(visit_form, 'visit', is_subcase=True)
        factory.form_uses_usercase(visit_form, preload={'username': '/data/username'})

        notes_form = factory.new_form(visit_module)
        factory.form_requires_case(notes_form)
        factory.form_opens_case(notes_form, 'visit', is_subcase=True)

        update_patient_form = factory.new_form(visit_module)
        factory.form_requires_case(update_patient_form)

        self.assertXmlPartialEqual(
            self.get_xml('target_module_different_datums'),
            factory.app.create_suite(),
            './entry')
* Registration
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/tests/test_case_list_form.py/CaseListFormSuiteTests.test_target_module_different_datums