def test_get_hashtags_empty(self): tweet = Tweet(json.loads(tweet_samples.no_hashtags_tweet)) self.assertEquals(tweet.get_hashtags(), [])
def test_get_hashtags(self): tweet = Tweet(json.loads(tweet_samples.hashtags_tweet)) self.assertEquals(tweet.get_hashtags(), [u'SougoFollow', u'THF', u'TeamFollowBack', u'HITFOLLOWSTEAM', u'TFBJP', u'OpenFollow', u'MustFollow'])