From 14d4d0bf65bee657bbfd8596d7af61c158cc5165 Mon Sep 17 00:00:00 2001 From: moltenmuffins Date: Thu, 8 Oct 2020 17:07:30 +0800 Subject: [PATCH] Add `test_indent()` --- tests/test_padding.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_padding.py b/tests/test_padding.py index 2b512ef8..489af8bb 100644 --- a/tests/test_padding.py +++ b/tests/test_padding.py @@ -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)