aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-02-20 13:14:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-02-20 13:14:09 +0100
commit4fc946b546c2a471774646f7da291105f8a0cb99 (patch)
tree06fc9716e83bcb2e92a30a3ebf3bad58267e5d1e /test
parent280bc5dad651728e493b3b25a672a9aaef590683 (diff)
[generic] Add support for RSS feeds (Fixes #667)
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 1de9e8ec1..25bec9f1c 100644
--- a/test/test_playlists.py
+++ b/test/test_playlists.py
@@ -250,5 +250,14 @@ class TestPlaylists(unittest.TestCase):
self.assertEqual(result['title'], 'python language')
self.assertTrue(len(result['entries']) == 15)
+ def test_generic_rss_feed(self):
+ dl = FakeYDL()
+ ie = GenericIE(dl)
+ result = ie.extract('http://www.escapistmagazine.com/rss/videos/list/1.xml')
+ self.assertIsPlaylist(result)
+ self.assertEqual(result['id'], 'http://www.escapistmagazine.com/rss/videos/list/1.xml')
+ self.assertEqual(result['title'], 'Zero Punctuation')
+ self.assertTrue(len(result['entries']) > 10)
+
if __name__ == '__main__':
unittest.main()