def test_append_loop_regression() -> None:
    """Regression text for https://github.com/Textualize/rich/issues/3479"""
    a = Text("one", "blue")
    a.append(a)
    assert a.plain == "oneone"

    b = Text("two", "blue")
    b.append_text(b)
    assert b.plain == "twotwo"
Regression text for https://github.com/Textualize/rich/issues/3479
tests/test_text.py