diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-10 15:11:55 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-10 15:11:55 +0800 |
commit | 55b2f099c0c820d6c4b46609b175a44a6d7f97bf (patch) | |
tree | 4297d785c0d5d392b2063d583936d93cddebcc4b /test | |
parent | 9631a94fb5e5ee9b92135f938df00866535fc6c6 (diff) |
[utils] Decode HTML5 entities
Used in test_Vporn_1. Also related to #9270
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 2 |
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('/'), '/') self.assertEqual(unescapeHTML('é'), 'é') self.assertEqual(unescapeHTML('�'), '�') + # HTML5 entities + self.assertEqual(unescapeHTML('.''), '.\'') def test_date_from_str(self): self.assertEqual(date_from_str('yesterday'), date_from_str('now-1day')) |