projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edd9221
)
[test_utils] Add one more clean_html test
author
Tithen-Firion
<tithen.firion.0@gmail.com>
Fri, 28 Apr 2017 16:05:14 +0000
(18:05 +0200)
committer
Tithen-Firion
<tithen.firion.0@gmail.com>
Fri, 28 Apr 2017 16:05:14 +0000
(18:05 +0200)
test/test_utils.py
patch
|
blob
|
history
diff --git
a/test/test_utils.py
b/test/test_utils.py
index 4cd8188506ad296a407622b759d0ccf89c3c7117..9e1808e6bd10dbdab55884476c6a7d7446128f15 100644
(file)
--- 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(