[youtube:truncated_url] Move test to extractor
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 1 Jul 2014 13:49:34 +0000 (15:49 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 1 Jul 2014 13:49:34 +0000 (15:49 +0200)
test/test_all_urls.py
youtube_dl/extractor/youtube.py

index 4b56137cebb63287e4410959c091b09b6ffd785b..2bc81f0205165068f7c9cbc06634ddfaacbba68b 100644 (file)
@@ -69,9 +69,6 @@ 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_youtube_search_matching(self):
         self.assertMatch('http://www.youtube.com/results?search_query=making+mustard', ['youtube:search_url'])
         self.assertMatch('https://www.youtube.com/results?baz=bar&search_query=youtube-dl+test+video&filters=video&lclk=video', ['youtube:search_url'])
index ec3024cbd9b83d515ca8fb3a07587f1d530769a6..bf0fbc924be8e9355569acd5426f639523aacdb1 100644 (file)
@@ -1835,6 +1835,9 @@ class YoutubeTruncatedURLIE(InfoExtractor):
     _TESTS = [{
         'url': 'http://www.youtube.com/watch?annotation_id=annotation_3951667041',
         'only_matching': True,
+    }, {
+        'url': 'http://www.youtube.com/watch?',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):