def test_config_repo_titles(self): doc = self.go('/haiti') assert 'Haiti Earthquake' in scrape.get_all_text( doc.cssselect_one('div.subtitle-bar')) doc = self.go('/pakistan') assert 'Pakistan Floods' in scrape.get_all_text(doc.cssselect_one('div.subtitle-bar'))