diff options
author | Remita Amine <remitamine@gmail.com> | 2020-12-30 09:22:30 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2020-12-30 09:22:30 +0100 |
commit | 9dd674e1d20440564a3d25f33cd8785695e110f6 (patch) | |
tree | c0a878181142c7c8267f9c580fb59f7647f9f428 /test/test_utils.py | |
parent | 9c1e164e0cd77331ea4f0b474b32fd06f84bad71 (diff) |
[utils] accept only supported protocols in url_or_none
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 925a21d34..d49d3239c 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -554,6 +554,11 @@ class TestUtil(unittest.TestCase): self.assertEqual(url_or_none('http$://foo.de'), None) self.assertEqual(url_or_none('http://foo.de'), 'http://foo.de') self.assertEqual(url_or_none('//foo.de'), '//foo.de') + self.assertEqual(url_or_none('s3://foo.de'), None) + self.assertEqual(url_or_none('rtmpte://foo.de'), 'rtmpte://foo.de') + self.assertEqual(url_or_none('mms://foo.de'), 'mms://foo.de') + self.assertEqual(url_or_none('rtspu://foo.de'), 'rtspu://foo.de') + self.assertEqual(url_or_none('ftps://foo.de'), 'ftps://foo.de') def test_parse_age_limit(self): self.assertEqual(parse_age_limit(None), None) |