MCPcopy
hub / github.com/Textualize/rich / test_copy

Function test_copy

tests/test_text.py:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117
118
119def test_copy():
120 text = Text()
121 text.append("Hello", "bold")
122 text.append(" ")
123 text.append("World", "italic")
124 test_copy = text.copy()
125 assert text == test_copy
126 assert text is not test_copy
127
128
129def test_rstrip():

Callers

nothing calls this directly

Calls 3

appendMethod · 0.95
copyMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected