diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/test_webutils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/test_webutils.py b/tests/unit/test_webutils.py index 244d2b180..b4395539b 100644 --- a/tests/unit/test_webutils.py +++ b/tests/unit/test_webutils.py @@ -57,6 +57,11 @@ class TestWebUtils(SearxTestCase): ] ), ), + ( + 'a class', + 'a string with class.', + '<span class="highlight">a</span> string with <span class="highlight">class</span>.', + ), ) for query, content, expected in data: self.assertEqual(webutils.highlight_content(content, query), expected) |