summaryrefslogtreecommitdiff
path: root/tests/string_utils_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/string_utils_test.py')
-rwxr-xr-xtests/string_utils_test.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/string_utils_test.py b/tests/string_utils_test.py
index cc57036..5184894 100755
--- a/tests/string_utils_test.py
+++ b/tests/string_utils_test.py
@@ -2,16 +2,14 @@
import unittest
-from ansi import fg, bg, reset
import bootstrap
import string_utils as su
-
import unittest_utils as uu
+from ansi import bg, fg, reset
@uu.check_all_methods_for_perf_regressions()
class TestStringUtils(unittest.TestCase):
-
def test_is_none_or_empty(self):
self.assertTrue(su.is_none_or_empty(None))
self.assertTrue(su.is_none_or_empty(""))
@@ -130,7 +128,7 @@ class TestStringUtils(unittest.TestCase):
s = f' {fg("red")} this is a test {bg("white")} this is a test {reset()} '
self.assertEqual(
su.strip_escape_sequences(s),
- ' this is a test this is a test '
+ ' this is a test this is a test ',
)
s = ' this is another test '
self.assertEqual(su.strip_escape_sequences(s), s)