Example #1
0
 def setUp(self):
     try:
         from superdesk.io.feeding_services.rss import RSSFeedingService
     except ImportError:
         # a missing class should result in a test failure, not in an error
         self.fail("Could not import class under test (RSSFeedingService).")
     else:
         self.instance = RSSFeedingService()
Example #2
0
 def setUpForChildren(self):
     super().setUpForChildren()
     try:
         from superdesk.io.feeding_services.rss import RSSFeedingService
     except ImportError:
         # a missing class should result in a test failure, not in an error
         self.fail("Could not import class under test (RSSFeedingService).")
     else:
         self.instance = RSSFeedingService()
         self.config = {}
         self.instance.provider = {"config": self.config}