def METHOD_NAME(capsys):
    ui.table([("foo", "bar"), ("foo1", "bar1"), ("foo2", "bar2")], rich_table=True)
    captured = capsys.readouterr()
    assert [row.strip() for row in captured.out.splitlines() if row.strip()] == [
        "foo   bar",
        "foo1  bar1",
        "foo2  bar2",
    ]