def METHOD_NAME(self, cmd: str, main_func: Callable, **kargs: Any) -> None:
    old_stdout = sys.stdout
    sys.stdout = mystdout = StringIO()
    self.assert_main_equals(cmd, main_func, [])
    sys.stdout = old_stdout
    self.assert_yaml_equals(result=mystdout.getvalue(), **kargs)