Esempio n. 1
0
 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')
Esempio n. 2
0
 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')
Esempio n. 3
0
 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')
Esempio n. 4
0
 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')
Esempio n. 5
0
 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')