def METHOD_NAME(self, test_app, functionality_test_data, dbsession):
    from c2cgeoportal_commons.models.main import Functionality, Log, LogAction
    functionality = functionality_test_data["functionalities"][0]
    deleted_id = functionality.id
    test_app.delete(f"/admin/functionalities/{deleted_id}", status=200)
    assert dbsession.query(Functionality).get(deleted_id) is None
    log = dbsession.query(Log).one()
    assert log.date != None
    assert log.action == LogAction.DELETE
    assert log.element_type == "functionality"
    assert log.element_id == functionality.id
    assert log.element_name == functionality.name
    assert log.username == "test_user"