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

index b7b28515a86b2bb80459aaf34a6017137b0de344..b51b804e9407778373990743e14cc42756b7c446 100644 (file)
       "title": "Heart-Shaped Box: Literal Video Version"
     }
   },
-  {
-    "name": "Steam",
-    "url": "http://store.steampowered.com/video/105600/",
-    "playlist": [
-      {
-        "file": "81300.flv",
-        "md5": "f870007cee7065d7c76b88f0a45ecc07",
-        "info_dict": {
-            "title": "Terraria 1.1 Trailer"
-        }
-      },
-      {
-        "file": "80859.flv",
-        "md5": "61aaf31a5c5c3041afb58fb83cbb5751",
-        "info_dict": {
-          "title": "Terraria Trailer"
-        }
-      }
-    ]
-  },
   {
     "name": "Ustream",
     "url": "http://www.ustream.tv/recorded/20274954",
index 30cb83208f5f78231ee56771d92c67c0dab5a596..b81802961c7e810ce32b16fa0c1b4fde1398201e 100644 (file)
@@ -16,6 +16,27 @@ class SteamIE(InfoExtractor):
                 """
     _VIDEO_PAGE_TEMPLATE = 'http://store.steampowered.com/video/%s/'
     _AGECHECK_TEMPLATE = 'http://store.steampowered.com/agecheck/video/%s/?snr=1_agecheck_agecheck__age-gate&ageDay=1&ageMonth=January&ageYear=1970'
+    _TEST = {
+        u"name": u"Steam",
+        u"url": u"http://store.steampowered.com/video/105600/",
+        u"playlist": [
+            {
+                u"file": u"81300.flv",
+                u"md5": u"f870007cee7065d7c76b88f0a45ecc07",
+                u"info_dict": {
+                        u"title": u"Terraria 1.1 Trailer"
+                }
+            },
+            {
+                u"file": u"80859.flv",
+                u"md5": u"61aaf31a5c5c3041afb58fb83cbb5751",
+                u"info_dict": {
+                    u"title": u"Terraria Trailer"
+                }
+            }
+        ]
+    }
+
 
     @classmethod
     def suitable(cls, url):