MCPcopy
hub / github.com/Textualize/textual / test_simple

Function test_simple

tests/test_content.py:25–34  ·  view source on GitHub ↗

Check content with simple unstyled text.

()

Source from the content-addressed store, hash-verified

23
24
25def test_simple():
26 """Check content with simple unstyled text."""
27 simple = Content("foo")
28 assert isinstance(simple, Content)
29 assert str(simple) == "foo"
30 assert simple.plain == "foo"
31 assert simple # Not empty is truthy
32 assert simple.markup == "foo"
33 assert len(simple) == 3
34 assert simple.spans == []
35
36
37def test_constructor():

Callers

nothing calls this directly

Calls 1

ContentClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…