From addf05baa939c23719d23bd0c543a996022f1644 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 7 Sep 2019 12:27:36 +0200 Subject: [PATCH] test: improve get_full_url --- lib/svtplay_dl/tests/test_http.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/svtplay_dl/tests/test_http.py b/lib/svtplay_dl/tests/test_http.py index 7216083..17f2a0e 100644 --- a/lib/svtplay_dl/tests/test_http.py +++ b/lib/svtplay_dl/tests/test_http.py @@ -21,5 +21,7 @@ class HttpTest(unittest.TestCase): {"srcurl": "http://example.com/bar", "segment": "foo.ts", "expected": "http://example.com/foo.ts"}, # with query parameters {"srcurl": "http://example.com/bar?baz=qux", "segment": "foo.ts", "expected": "http://example.com/foo.ts"}, + # with segment with slash + {"srcurl": "http://example.com/bar", "segment": "/test", "expected": "http://example.com/test"}, ]: assert get_full_url(test["segment"], test["srcurl"]) == test["expected"]