diff options
| author | fiocfun <fiocfun@gmail.com> | 2014-03-23 00:16:35 +0600 | 
|---|---|---|
| committer | fiocfun <fiocfun@gmail.com> | 2014-03-23 00:16:35 +0600 | 
| commit | 9f5809b3e80674a7d3e4afbfc3e790849cf17cad (patch) | |
| tree | da8bcc4dead765758befcbfb212323564c342346 /test | |
| parent | 0320ddc19251eb70e5351edf4788d2979872161c (diff) | |
[xtube] user playlist extractor
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_playlists.py | 9 | 
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()  | 
