def METHOD_NAME(self, dbsession, transact):
    from c2cgeoportal_commons.models import main
    del transact
    ogc_server = main.OGCServer(name="mapserver", url="http://mapserver:8080")
    layer_wms = main.LayerWMS(name="layer_wms")
    layer_wms.ogc_server = ogc_server
    layer_wms.layer = "testpoint_unprotected"
    dbsession.add(layer_wms)
    dbsession.flush()
    messages = self.extract()
    assert {m.msgid for m in messages} == {
        "layer_wms",
        "testpoint_unprotected",
        "city",
        "country",
        "name",
    }