()
| 82 | |
| 83 | |
| 84 | def test_plain_property_setter(): |
| 85 | text = Text("foo") |
| 86 | text.plain = "bar" |
| 87 | assert str(text) == "bar" |
| 88 | text = Text() |
| 89 | text.append("Hello, World", "bold") |
| 90 | text.plain = "Hello" |
| 91 | assert str(text) == "Hello" |
| 92 | assert text._spans == [Span(0, 5, "bold")] |
| 93 | |
| 94 | |
| 95 | def test_from_markup(): |