def test_create_Tweet_objects(self): search = TwitterSearch(self.api, self.db, self.scorer, self.query, self.args) results = search.get_100_search_results() tweets = search.create_Tweet_objects(results) self.assertIsInstance(tweets, list) self.assertIsInstance(tweets[0], Tweet)
def test_get_100_search_results(self): search = TwitterSearch(self.api, self.db, self.scorer, self.query, self.args) results = search.get_100_search_results() self.assertEquals(len(results), 100)