def METHOD_NAME(
    self,
    tree,
    mock_stdout,
    style="box",
    level=None,
    skip_root=False,
    truncate=True,
    expected_output=None,
):
    tree.render(style=style, level=level, skip_root=skip_root, truncate=truncate)
    self.assertEqual(mock_stdout.getvalue(), expected_output)