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

index 4ad976b8a98bed540ee20ca9d0eeba7e396e1bea..ce4e7fe0887b6cc13c18d7449cad199374690297 100644 (file)
       "title": "Breaking Down Baldur's Gate"
     }
   },
-  {
-    "name": "GooglePlus",
-    "url": "https://plus.google.com/u/0/108897254135232129896/posts/ZButuJc6CtH",
-    "file": "ZButuJc6CtH.flv",
-    "info_dict": {
-      "upload_date": "20120613",
-      "uploader": "井上ヨシマサ",
-      "title": "嘆きの天使 降臨"
-    }
-  },
   {
     "name": "FunnyOrDie",
     "url": "http://www.funnyordie.com/videos/0732f586d7/heart-shaped-box-literal-video-version",
index ff2cdeebb4e9dde5f1ff8e3a7c7bb0c00b48f048..a8f171afd5dcbcd5662b4ff53de3c48c6e0a2dd6 100644 (file)
@@ -1,3 +1,5 @@
+# coding: utf-8
+
 import datetime
 import re
 
@@ -12,6 +14,15 @@ class GooglePlusIE(InfoExtractor):
 
     _VALID_URL = r'(?:https://)?plus\.google\.com/(?:[^/]+/)*?posts/(\w+)'
     IE_NAME = u'plus.google'
+    _TEST = {
+        u"url": u"https://plus.google.com/u/0/108897254135232129896/posts/ZButuJc6CtH",
+        u"file": u"ZButuJc6CtH.flv",
+        u"info_dict": {
+            u"upload_date": u"20120613",
+            u"uploader": u"井上ヨシマサ",
+            u"title": u"嘆きの天使 降臨"
+        }
+    }
 
     def _real_extract(self, url):
         # Extract id from URL