diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-01-20 20:21:24 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-01-20 20:22:19 +0700 |
commit | fad4ceb53404227f471af2f3544c4c14a5df4acb (patch) | |
tree | 56df0b67568b311f2eae4f3bc71c99d154cd250a /test/test_utils.py | |
parent | 6945b9e78f38284eb4e440b7badea2fc60b66c2f (diff) |
[utils] Fix urljoin for paths with non-http(s) schemes
Diffstat (limited to 'test/test_utils.py')
-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 9e28e008f..409482c3b 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -507,6 +507,8 @@ class TestUtil(unittest.TestCase): self.assertEqual(urljoin('http://foo.de/', ''), None) self.assertEqual(urljoin('http://foo.de/', ['foobar']), None) self.assertEqual(urljoin('http://foo.de/a/b/c.txt', '.././../d.txt'), 'http://foo.de/d.txt') + self.assertEqual(urljoin('http://foo.de/a/b/c.txt', 'rtmp://foo.de'), 'rtmp://foo.de') + self.assertEqual(urljoin(None, 'rtmp://foo.de'), 'rtmp://foo.de') def test_url_or_none(self): self.assertEqual(url_or_none(None), None) |