From 838e432e3e5519c5383d12018e6c78f8ec7833c1 Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Sun, 20 Jan 2019 00:45:41 +0100 Subject: [PATCH] Completed test coverage for utils.text.Truncator.chars(). --- tests/utils_tests/test_text.py | 1 + 1 file changed, 1 insertion(+) 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')