def METHOD_NAME(self, *args):
    """an inline search module can't be a parent module"""
    factory = AppFactory(build_version='2.51.0')
    m0, _ = factory.new_basic_module('first', 'case')
    m1, _ = factory.new_basic_module('second', 'case', parent_module=m0)
    m0.search_config = CaseSearch(
        search_label=CaseSearchLabel(label={'en': 'Search'}),
        properties=[CaseSearchProperty(name=field) for field in ['name', 'greatest_fear']],
        auto_launch=True,
        inline_search=True,
    )
    self.assertIn("inline search as parent module", _get_error_types(factory.app))