summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_text.py
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2019-01-20 00:45:41 +0100
committerTim Graham <timograham@gmail.com>2019-01-19 18:45:41 -0500
commit838e432e3e5519c5383d12018e6c78f8ec7833c1 (patch)
tree1c649d7c2ff4c5b89198c8d30b3ccc34d42b3840 /tests/utils_tests/test_text.py
parentd8a2f4ec09e5b7e73a706a1b1b5bf74d8bdc64b3 (diff)
Completed test coverage for utils.text.Truncator.chars().
Diffstat (limited to 'tests/utils_tests/test_text.py')
-rw-r--r--tests/utils_tests/test_text.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/utils_tests/test_text.py b/tests/utils_tests/test_text.py
index daa028a0f7..38e673a096 100644
--- a/tests/utils_tests/test_text.py
+++ b/tests/utils_tests/test_text.py
@@ -58,6 +58,7 @@ class TestUtilsText(SimpleTestCase):
self.assertEqual('The quick brown fox jumped over the lazy dog.', truncator.chars(100)),
self.assertEqual('The quick brown fox …', truncator.chars(21)),
self.assertEqual('The quick brown fo.....', truncator.chars(23, '.....')),
+ self.assertEqual('.....', truncator.chars(4, '.....')),
nfc = text.Truncator('o\xfco\xfco\xfco\xfc')
nfd = text.Truncator('ou\u0308ou\u0308ou\u0308ou\u0308')