def handle(self, *args, **options): # Make sure that the library knows about all the types of feeds. autodiscover() records = self.get_records() updater = FeedRecordUpdater() updater.update_all(records)
def test_calls_get_last_updated_time_on_all_feed_objects(self): updater = FeedRecordUpdater() updater.update_all(self.feed_records, self.library) self.assertEqual(self.feeds[0].get_last_updated_time.call_count, 1) self.assertEqual(self.feeds[1].get_last_updated_time.call_count, 1)