Skip to content

A feature-rich command-line audio/video downloader

[test_utils] Add one more clean_html test

Tithen-Firion9222d9451074
diff --git a/test/test_utils.py b/test/test_utils.py
index 4cd8188506..9e1808e6bd 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -899,6 +899,7 @@ class TestUtil(unittest.TestCase):
def test_clean_html(self):
self.assertEqual(clean_html('a:\nb'), 'a: b')
self.assertEqual(clean_html('a:\n "b"'), 'a: "b"')
+ self.assertEqual(clean_html('a<br>\xa0b'), 'a\nb')
def test_intlist_to_bytes(self):
self.assertEqual(