[infoq] move tests
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Jun 2013 18:27:08 +0000 (20:27 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Jun 2013 18:27:08 +0000 (20:27 +0200)
test/tests.json
youtube_dl/extractor/infoq.py

index 6c836e3b9faf10490f683715108bcdf1f9608742..4ad976b8a98bed540ee20ca9d0eeba7e396e1bea 100644 (file)
         "uploader": "Young Americans for Liberty"
     }
   },
-  {
-    "name": "InfoQ",
-    "url": "http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things",
-    "file": "12-jan-pythonthings.mp4",
-    "info_dict": {
-      "description": "Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.",
-      "title": "A Few of My Favorite [Python] Things"
-    },
-    "params": {
-      "skip_download": true
-    }
-  },
   {
     "name": "ComedyCentral",
     "url": "http://www.thedailyshow.com/watch/thu-december-13-2012/kristen-stewart",
index 9056742821a2fd99fadd5b1271df7dc6f5127749..9a13c52a8fa4d0b4a416d31411f37a63255bccf1 100644 (file)
@@ -11,6 +11,18 @@ from ..utils import (
 
 class InfoQIE(InfoExtractor):
     _VALID_URL = r'^(?:https?://)?(?:www\.)?infoq\.com/[^/]+/[^/]+$'
+    _TEST = {
+        u"name": u"InfoQ",
+        u"url": u"http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things",
+        u"file": u"12-jan-pythonthings.mp4",
+        u"info_dict": {
+            u"description": u"Mike Pirnat presents some tips and tricks, standard libraries and third party packages that make programming in Python a richer experience.",
+            u"title": u"A Few of My Favorite [Python] Things"
+        },
+        u"params": {
+            u"skip_download": true
+        }
+    }
 
     def _real_extract(self, url):
         mobj = re.match(self._VALID_URL, url)