Exemple #1
0
    def test_reject(self):
        f = TweetsInEnglishPredicate()

        tweet = {
            "lang": "fr"
        }

        assert_false(f.test(tweet))
Exemple #2
0
    def test_accept(self):
        f = TweetsInEnglishPredicate()

        tweet = {
            "lang": "en"
        }

        assert_true(f.test(tweet))