aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-23 13:36:14 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-23 13:36:14 +0100
commitbfcb6e3917f89ad283cbcaf9cdf67925ce5e7155 (patch)
treea1c0f615ae119d326e1a4e7f858df0897dc8457b /test
parent2c1396073ebf396f5b4b35d6171363f632e60716 (diff)
parent9f5809b3e80674a7d3e4afbfc3e790849cf17cad (diff)
downloadyoutube-dl-bfcb6e3917f89ad283cbcaf9cdf67925ce5e7155.tar.xz
Merge remote-tracking branch 'fiocfun/xtube-user-extractor'
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 4c9c34057..2b1a7e849 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -38,6 +38,7 @@ from youtube_dl.extractor import (
GenericIE,
TEDIE,
ToypicsUserIE,
+ XTubeUserIE,
)
@@ -278,5 +279,13 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['id'], 'Mikey')
self.assertTrue(len(result['entries']) >= 17)
+ def test_xtube_user(self):
+ dl = FakeYDL()
+ ie = XTubeUserIE(dl)
+ result = ie.extract('http://www.xtube.com/community/profile.php?user=greenshowers')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'greenshowers')
+ self.assertTrue(len(result['entries']) >= 155)
+
if __name__ == '__main__':
unittest.main()