diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-05-04 21:53:05 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-05-04 21:55:04 +0800 |
commit | 0fe2ff78e68ec03d56bf3d9434eb612ffb683977 (patch) | |
tree | 4c30fd7db4745184c45cadc0059423215937cbed /test/test_utils.py | |
parent | dc1eed93be7ac2afb3f52237ae0034d24715b4bd (diff) |
[NBC] Enhance embedURL extraction (closes #2549)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 6906a65c2..032d3656a 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -53,6 +53,7 @@ from youtube_dl.utils import ( unified_strdate, unsmuggle_url, uppercase_escape, + lowercase_escape, url_basename, urlencode_postdata, version_tuple, @@ -418,6 +419,10 @@ class TestUtil(unittest.TestCase): self.assertEqual(uppercase_escape('aä'), 'aä') self.assertEqual(uppercase_escape('\\U0001d550'), '𝕐') + def test_lowercase_escape(self): + self.assertEqual(lowercase_escape('aä'), 'aä') + self.assertEqual(lowercase_escape('\\u0026'), '&') + def test_limit_length(self): self.assertEqual(limit_length(None, 12), None) self.assertEqual(limit_length('foo', 12), 'foo') |