def METHOD_NAME(self):
    class ModelStub:
        IF_ELSE_ROOT = 'IF/ELSE ROOT'
        TRY_EXCEPT_ROOT = 'TRY/EXCEPT ROOT'
        type = 'xxx'
    for listeners in [Listeners([]), LibraryListeners()]:
        for name in dir(listeners):
            if name.startswith(('start_', 'end_')):
                model = ModelStub() if name.endswith('keyword') else None
                method = getattr(listeners, name)
                method(model)