aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-06-10 15:11:55 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-06-10 15:11:55 +0800
commit55b2f099c0c820d6c4b46609b175a44a6d7f97bf (patch)
tree4297d785c0d5d392b2063d583936d93cddebcc4b /test
parent9631a94fb5e5ee9b92135f938df00866535fc6c6 (diff)
[utils] Decode HTML5 entities
Used in test_Vporn_1. Also related to #9270
Diffstat (limited to 'test')
-rw-r--r--test/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py
index feef80465..0e25de6b7 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -249,6 +249,8 @@ class TestUtil(unittest.TestCase):
self.assertEqual(unescapeHTML('&#47;'), '/')
self.assertEqual(unescapeHTML('&eacute;'), 'é')
self.assertEqual(unescapeHTML('&#2013266066;'), '&#2013266066;')
+ # HTML5 entities
+ self.assertEqual(unescapeHTML('&period;&apos;'), '.\'')
def test_date_from_str(self):
self.assertEqual(date_from_str('yesterday'), date_from_str('now-1day'))