def test_bulk_import_big(self): """ bulk_import(parsed_feed) should return a FeedParserDict which contains all the entries from the feed. """ feed = opensearch.bulk_import(BIG_FEED_PARSED) self.assertEquals(len(feed.entries), 58) self.assertEquals(feed.entries[0].title, '00270') self.assertEquals(feed.entries[-1].title, '00124')
def test_bulk_import_small(self): """ bulk_import(parsed_feed) should return a FeedParserDict which contains all the entries from the feed, even if the feed does not span multiple pages. """ feed = opensearch.bulk_import(SMALL_FEED_PARSED) self.assertEquals(len(feed.entries), 1) self.assertEquals(feed.entries[0].title, 'SE Telephone Lg Video')
def test_bulk_import_small(self): """ bulk_import(parsed_feed) should return a FeedParserDict which contains all the entries from the feed, even if the feed does not span multiple pages. """ feed = opensearch.bulk_import(SMALL_FEED_PARSED) self.assertEquals(len(feed.entries), 3) self.assertEquals(feed.entries[-1].title, 'Darrell Maynard Interview, Southeast Telephone, ' 'Pike County, Kentucky')