def test_download_one(self):
     test_download_one_for(
         self,
         MediaRssDownloader(
             None,
             "http://backend.deviantart.com/rss.xml?q=boost%3Apopular+leaves&type=deviation"
         ))
 def validate(self, url):
     if not url.startswith("http://") and not url.startswith("https://"):
         url = "https://" + url
     valid = MediaRssDownloader.validate(url)
     return url, None if valid else _(
         "This does not seem to be a valid Media RSS feed URL or there is no content there."
     )
 def test_validate_non_rss(self):
     self.assertFalse(MediaRssDownloader.validate("http://google.com"))
 def test_validate_non_media_rss(self):
     self.assertFalse(
         MediaRssDownloader.validate(
             "http://www.dnevnik.bg/rss/?page=index"))
 def test_validate_deviantart(self):
     self.assertTrue(
         MediaRssDownloader.validate(
             "http://backend.deviantart.com/rss.xml?q=boost%3Apopular+leaves&type=deviation"
         ))
 def test_validate_non_rss(self):
     self.assertFalse(MediaRssDownloader.validate("http://google.com"))
 def test_validate_non_media_rss(self):
     self.assertFalse(MediaRssDownloader.validate("http://www.dnevnik.bg/rss/?page=index"))
 def test_validate_picasa(self):
     self.assertTrue(MediaRssDownloader.validate("https://picasaweb.google.com/data/feed/base/user/111758109475195528754/albumid/5731259484758046113?alt=rss&kind=photo&hl=bg"))
 def test_validate_deviantart(self):
     self.assertTrue(MediaRssDownloader.validate("http://backend.deviantart.com/rss.xml?q=boost%3Apopular+leaves&type=deviation"))
Example #10
0
 def test_validate_picasa(self):
     self.assertTrue(
         MediaRssDownloader.validate(
             "https://picasaweb.google.com/data/feed/base/user/111758109475195528754/albumid/5731259484758046113?alt=rss&kind=photo&hl=bg"
         ))
Example #11
0
 def test_download_one(self):
     test_download_one_for(
         self,
         MediaRssDownloader(None, "https://vrty.org/user/~peterlevi/rss"))
Example #12
0
 def validate(self, url):
     if not url.startswith("http://") and not url.startswith("https://"):
         url = "https://" + url
     valid = MediaRssDownloader.validate(url)
     return url, None if valid else _("This does not seem to be a valid Media RSS feed URL or there is no content there.")