def test_reply_checking(self): checker = checking.construct_tweet_checker(no_replies=True) assert checker('RT @hello There') is True assert checker('@hello There') is False lst = list(self.archive) rt = [t for t in lst if t['tweet_id'] == '651607152713433089'][0] assert checker(rt) is True
def test_reply_filter(self): reply_filter = checking.construct_tweet_checker(no_replies=True) assert reply_filter(self.status) is False
def test_rt_filter(self): retweet_filter = checking.construct_tweet_checker(no_retweets=True) assert retweet_filter(self.status)
def test_rt_checking(self): checker = checking.construct_tweet_checker(no_retweets=True) assert checker('RT @hello There') is False assert checker('@hello There') is True