def test_NotPeropero(self): tc = TweetChecker(u'レロレロ') assert_false(tc.isPeropero()) tc = TweetChecker(u'ぺ') assert_false(tc.isPeropero()) tc = TweetChecker(u'ブホホフギィ!!') assert_false(tc.isPeropero())
def test_Peropero(self): tc = TweetChecker(u'ペロペロ') assert_true(tc.isPeropero()) tc = TweetChecker(u'ペロペロ') assert_true(tc.isPeropero()) tc = TweetChecker(u'ペロペロ') assert_true(tc.isPeropero()) tc = TweetChecker(u'ペロペロ') assert_true(tc.isPeropero()) tc = TweetChecker(u'これにペロペロ機能つける') assert_true(tc.isPeropero())