Пример #1
0
 def test_agency_recent_articles(self):
     agency = Agency.by_id(AGENCY_ID)
     self.assertTrue(agency is not None, "Could not find agency.")
     articles = agency.recent_articles
     self.assertTrue(len(articles) > 0, "No articles for this agency.")
Пример #2
0
 def test_agency_by_id(self):
     agency = Agency.by_id(AGENCY_ID)
     self.assertTrue(agency is not None, "Could not find agency")