def METHOD_NAME(self):
    handle_shadow_child_modules(self.app, self.app.get_module_by_unique_id(self.shadow_module.unique_id))
    app = Application.get(self.app.get_id)
    # A new shadow module should be created whose module source is the child
    self.assertEqual(len(app.modules), 4)
    self.assertEqual(app.modules[3].module_type, "shadow")
    self.assertEqual(app.modules[3].source_module_id, self.child_module.unique_id)
    # excluded form ids should move from the parent to the child module,
    # retaining the pertinent parent ids
    self.assertItemsEqual(app.modules[3].excluded_form_ids, [self.form3.unique_id])
    self.assertItemsEqual(
        app.get_module_by_unique_id(self.shadow_module.unique_id).excluded_form_ids,
        [self.form0.unique_id],
    )
    # Calling the command again should not make new modules
    shadow_child_module_id = app.modules[3].unique_id
    handle_shadow_child_modules(app, app.get_module_by_unique_id(self.shadow_module.unique_id))
    app = Application.get(app.get_id)
    self.assertEqual(len(app.modules), 4)
    self.assertEqual(app.modules[3].unique_id, shadow_child_module_id)