def METHOD_NAME(self, inspect):
    """Tests listing registered tasks"""
    # TODO: We can check also the exact values of the registered methods
    ret = inspect.registered()
    assert len(ret) == 1
    assert len(ret[NODENAME]) > 0
    for task_name in ret[NODENAME]:
        assert isinstance(task_name, str)
    ret = inspect.registered('name')
    for task_info in ret[NODENAME]:
        # task_info is in form 'TASK_NAME [name=TASK_NAME]'
        assert re.fullmatch(r'\S+ \[name=\S+\]', task_info)