Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
 def test_reply_filter(self):
     reply_filter = checking.construct_tweet_checker(no_replies=True)
     assert reply_filter(self.status) is False
Exemplo n.º 4
0
 def test_rt_filter(self):
     retweet_filter = checking.construct_tweet_checker(no_retweets=True)
     assert retweet_filter(self.status)
Exemplo n.º 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
Exemplo n.º 6
0
 def test_reply_filter(self):
     reply_filter = checking.construct_tweet_checker(no_replies=True)
     assert reply_filter(self.status) is False
Exemplo n.º 7
0
 def test_rt_filter(self):
     retweet_filter = checking.construct_tweet_checker(no_retweets=True)
     assert retweet_filter(self.status)
Exemplo n.º 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