mirror of https://github.com/Textualize/rich.git
Add `test_indent()`
This commit is contained in:
parent
630f378e65
commit
14d4d0bf65
|
@ -8,6 +8,10 @@ def test_repr():
|
|||
assert isinstance(repr(padding), str)
|
||||
|
||||
|
||||
def test_indent():
|
||||
assert Padding.indent("test", 4).left == 4
|
||||
|
||||
|
||||
def test_unpack():
|
||||
assert Padding.unpack(3) == (3, 3, 3, 3)
|
||||
assert Padding.unpack((3,)) == (3, 3, 3, 3)
|
||||
|
|
Loading…
Reference in New Issue