예제 #1
0
    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
예제 #2
0
    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
예제 #3
0
 def test_reply_filter(self):
     reply_filter = checking.construct_tweet_checker(no_replies=True)
     assert reply_filter(self.status) is False
예제 #4
0
 def test_rt_filter(self):
     retweet_filter = checking.construct_tweet_checker(no_retweets=True)
     assert retweet_filter(self.status)
예제 #5
0
 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
예제 #6
0
 def test_reply_filter(self):
     reply_filter = checking.construct_tweet_checker(no_replies=True)
     assert reply_filter(self.status) is False
예제 #7
0
 def test_rt_filter(self):
     retweet_filter = checking.construct_tweet_checker(no_retweets=True)
     assert retweet_filter(self.status)
예제 #8
0
 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