async def METHOD_NAME(self):
    from c2cgeoportal_geoportal.views.theme import Theme
    request = DummyRequest()
    request.static_url = lambda url: "http://example.com/dummy/static/url"
    request.route_url = lambda url, _query={}: mapserv_url
    request.get_organization_role = lambda role_type: role_type
    request.user = None
    theme_view = Theme(request)
    _, errors = await theme_view._themes("desktop2", True, 2)
    self.assertEqual(
        len([e for e in errors if e == "Too many recursions with group '__test_layer_group'"]), 1
    )