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.")
def test_agency_by_id(self): agency = Agency.by_id(AGENCY_ID) self.assertTrue(agency is not None, "Could not find agency")