aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-22 15:15:01 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-22 15:15:01 +0100
commit231f76b530d214e64762c8129861c0eff7d9494f (patch)
tree240e65aa1b92405b0ee12937e4b4562cc20c9526 /test
parent55442a7812d3df6b888fa2f61446f711ed3e92b4 (diff)
[toypics] Separate user and video extraction (#2601)
Diffstat (limited to 'test')
-rw-r--r--test/test_playlists.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_playlists.py b/test/test_playlists.py
index fbeed1c8c..4c9c34057 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -37,6 +37,7 @@ from youtube_dl.extractor import (
GoogleSearchIE,
GenericIE,
TEDIE,
+ ToypicsUserIE,
)
@@ -269,5 +270,13 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], 'Who are the hackers?')
self.assertTrue(len(result['entries']) >= 6)
+ def test_toypics_user(self):
+ dl = FakeYDL()
+ ie = ToypicsUserIE(dl)
+ result = ie.extract('http://videos.toypics.net/Mikey')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'Mikey')
+ self.assertTrue(len(result['entries']) >= 17)
+
if __name__ == '__main__':
unittest.main()