def test_Question(self): tc = TweetChecker(u'だろ?') assert_true(tc.isQuestion()) tc = TweetChecker(u'そう思うよね?') assert_true(tc.isQuestion()) tc = TweetChecker(u'美味しいんだろ?') assert_true(tc.isQuestion()) tc = TweetChecker(u'BLなんですか?') assert_true(tc.isQuestion()) tc = TweetChecker(u'ロボットナンダロ?') assert_true(tc.isQuestion()) tc = TweetChecker(u'ネ? ソウダヨネ?') assert_true(tc.isQuestion()) tc = TweetChecker(u'だろ!') assert_true(tc.isQuestion()) tc = TweetChecker(u'な!') assert_true(tc.isQuestion()) tc = TweetChecker(u'ダロ!') assert_true(tc.isQuestion()) tc = TweetChecker(u'大丈夫ですか?') assert_true(tc.isQuestion())
def test_NotQuestion(self): tc = TweetChecker(u'そうにきまてる') assert_false(tc.isQuestion()) tc = TweetChecker(u'そんなきがしてた') assert_false(tc.isQuestion()) tc = TweetChecker(u'君はBLなのかな') assert_false(tc.isQuestion()) tc = TweetChecker(u'そんな装備で大丈夫か?') assert_false(tc.isQuestion())