示例#1
0
 def test_womble(self):
     result = womble.cache.getRSSFeed("http://newshost.co.za/rss/?sec=tv-sd&fr=false")
     self.assertTrue("entries" in result)
     self.assertTrue("feed" in result)
     for item in result["entries"] or []:
         title, url = womble._get_title_and_url(item)
         self.assertTrue(title and url)
示例#2
0
 def test_womble(self):
     result = womble.cache.getRSSFeed('http://newshost.co.za/rss/?sec=tv-sd&fr=false')
     self.assertTrue('entries' in result)
     self.assertTrue('feed' in result)
     for item in result['entries'] or []:
         title, url = womble._get_title_and_url(item)
         self.assertTrue(title and url)
示例#3
0
 def test_womble(self):
     """
     Test womble
     """
     result = womble.cache.getRSSFeed(womble.urls['rss'], params={'sec': 'tv-sd', 'fr': 'false'})
     self.assertTrue('entries' in result)
     self.assertTrue('feed' in result)
     for item in result['entries'] or []:
         title, url = womble._get_title_and_url(item)     # pylint: disable=protected-access
         self.assertTrue(title and url)
示例#4
0
 def test_womble(self):
     """
     Test womble
     """
     result = womble.cache.getRSSFeed('http://newshost.co.za/rss/?sec=tv-sd&fr=false')
     self.assertTrue('entries' in result)
     self.assertTrue('feed' in result)
     for item in result['entries'] or []:
         title, url = womble._get_title_and_url(item)     # pylint: disable=protected-access
         self.assertTrue(title and url)
示例#5
0
 def test_womble(self):
     """
     Test womble
     """
     result = womble.cache.getRSSFeed(
         'http://newshost.co.za/rss/?sec=tv-sd&fr=false')
     self.assertTrue('entries' in result)
     self.assertTrue('feed' in result)
     for item in result['entries'] or []:
         title, url = womble._get_title_and_url(item)  # pylint: disable=protected-access
         self.assertTrue(title and url)