about summary refs log tree commit diff
path: root/test/test_all_urls.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-02-17 14:56:21 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-02-17 14:56:21 +0100
commit2eb5d315d49b51f3594cda27f44773e826c6cccb (patch)
treefa0e5a7e3c185e790dab228b6422f191d5008a9c /test/test_all_urls.py
parentad5976b4d90da6921a5e72603f3b73c4597e6138 (diff)
downloadyoutube-dl-2eb5d315d49b51f3594cda27f44773e826c6cccb.tar.gz
youtube-dl-2eb5d315d49b51f3594cda27f44773e826c6cccb.tar.xz
youtube-dl-2eb5d315d49b51f3594cda27f44773e826c6cccb.zip
[youtube] Match more truncated URLs (Closes #2402)
Diffstat (limited to 'test/test_all_urls.py')
-rw-r--r--test/test_all_urls.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_all_urls.py b/test/test_all_urls.py
index aa8e4e4bd..7a78005a3 100644
--- a/test/test_all_urls.py
+++ b/test/test_all_urls.py
@@ -68,6 +68,9 @@ class TestAllURLsMatching(unittest.TestCase):
     def test_youtube_show_matching(self):
         self.assertMatch('http://www.youtube.com/show/airdisasters', ['youtube:show'])
 
+    def test_youtube_truncated(self):
+        self.assertMatch('http://www.youtube.com/watch?', ['youtube:truncated_url'])
+
     def test_justin_tv_channelid_matching(self):
         self.assertTrue(JustinTVIE.suitable(u"justin.tv/vanillatv"))
         self.assertTrue(JustinTVIE.suitable(u"twitch.tv/vanillatv"))