Beispiel #1
0
class FeedParserTestCase(unittest.TestCase):
    def setUp(self):
        feedurl = 'http://www.desktopnexus.com/feed/'
        self.parser = FeedParser(feedurl)

    def test_load(self):
        feed = self.parser.load()
        self.assertIsNotNone(feed)
        self.assertEquals('http://www.desktopnexus.com/feed/', feed.feedurl)
        self.assertEquals('Desktop Nexus - Global Wallpaper RSS Feed', feed.title)
        self.assertEquals('http://www.desktopnexus.com', feed.link)
        self.assertEquals(20, len(feed.wallpapers))
Beispiel #2
0
 def setUp(self):
     feedurl = 'http://www.desktopnexus.com/feed/'
     self.parser = FeedParser(feedurl)