diff options
author | Yen Chi Hsuan <[email protected]> | 2015-04-08 21:39:34 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2015-04-08 21:39:34 +0800 |
commit | 0a1603634bcf799eeb769d95b6e716e66123b77f (patch) | |
tree | e15605172eab5f823f4743713ce23003fb4590c8 /test | |
parent | a662163fd5b3c9b1221b8aeaf54ed9083af8574f (diff) | |
download | youtube-dl-0a1603634bcf799eeb769d95b6e716e66123b77f.tar.gz youtube-dl-0a1603634bcf799eeb769d95b6e716e66123b77f.zip |
[utils] Remove url_infer_protocol
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 8291edd9a..2e3a6480c 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -53,7 +53,6 @@ from youtube_dl.utils import ( uppercase_escape, url_basename, urlencode_postdata, - url_infer_protocol, version_tuple, xpath_with_ns, xpath_text, @@ -297,10 +296,6 @@ class TestUtil(unittest.TestCase): url_basename('http://media.w3.org/2010/05/sintel/trailer.mp4'), 'trailer.mp4') - def test_url_infer_protocol(self): - self.assertEqual(url_infer_protocol('http://foo.com/', '//bar.com/'), 'http://bar.com/') - self.assertEqual(url_infer_protocol('http://foo.com/', 'https://bar.com/'), 'https://bar.com/') - def test_parse_duration(self): self.assertEqual(parse_duration(None), None) self.assertEqual(parse_duration(False), None) |