Beispiel #1
0
    def calls_get_last_updated_time_once(self):

        updater = ContentFeedRecordUpdater()

        updater.update_all(self.feed_records, self.library)

        assert_equal(self.feeds[0].get_last_updated_time.call_count, 1)
Beispiel #2
0
    def calls_get_last_updated_time_once(self):

        updater = ContentFeedRecordUpdater()

        updater.update_all(self.feed_records, self.library)

        assert_equal(self.feeds[0].get_last_updated_time.call_count, 1)
    def handle(self, *args, **options):
        # Make sure that the library knows about all the types of feeds.
        import_all_feeds()

        records = self.get_records()
        updater = ContentFeedRecordUpdater()
        updater.update_all(records)