summaryrefslogtreecommitdiffhomepage
path: root/test/test_playlists.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-03-22 15:15:01 +0100
committerPhilipp Hagemeister <[email protected]>2014-03-22 15:15:01 +0100
commit231f76b530d214e64762c8129861c0eff7d9494f (patch)
tree240e65aa1b92405b0ee12937e4b4562cc20c9526 /test/test_playlists.py
parent55442a7812d3df6b888fa2f61446f711ed3e92b4 (diff)
downloadyoutube-dl-231f76b530d214e64762c8129861c0eff7d9494f.tar.gz
youtube-dl-231f76b530d214e64762c8129861c0eff7d9494f.zip
[toypics] Separate user and video extraction (#2601)
Diffstat (limited to 'test/test_playlists.py')
-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()