aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/infoq.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:27:08 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-27 20:27:08 +0200
commit9d069c477895862d93e223b6d8cc475d42746033 (patch)
treee2c7d1b65be276c872c99360734d0963974e2bcc /youtube_dl/extractor/infoq.py
parent0d843f796bd01d4b173bf1ada0157b732ce9b168 (diff)
downloadyoutube-dl-9d069c477895862d93e223b6d8cc475d42746033.tar.xz
[infoq] move tests
Diffstat (limited to 'youtube_dl/extractor/infoq.py')
-rw-r--r--youtube_dl/extractor/infoq.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/youtube_dl/extractor/infoq.py b/youtube_dl/extractor/infoq.py
index 905674282..9a13c52a8 100644
--- a/youtube_dl/extractor/infoq.py
+++ b/youtube_dl/extractor/infoq.py
@@ -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)