def test_reject(self): f = TweetsInEnglishPredicate() tweet = { "lang": "fr" } assert_false(f.test(tweet))
def test_accept(self): f = TweetsInEnglishPredicate() tweet = { "lang": "en" } assert_true(f.test(tweet))