예제 #1
0
 def test_is_reply_when_unmatch_text(self):
     replier = HelloReplier()
     text = u'test'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))
예제 #2
0
 def test_is_reply_when_not_today(self):
     replier = HelloReplier()
     text = u'@nozomi_miraha おはよう'
     time = datetime.datetime(2000, 1, 1)
     self.assertFalse(replier.is_reply(text, time))
예제 #3
0
 def test_is_reply_when_true(self):
     replier = HelloReplier()
     text = u'@nozomi_miraha おはよう'
     time = datetime.datetime.today()
     self.assertTrue(replier.is_reply(text, time))
예제 #4
0
 def test_is_reply_when_not_include_at(self):
     replier = HelloReplier()
     text = u'おはよう'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))
예제 #5
0
 def test_is_reply_when_unmatch_text(self):
     replier = HelloReplier()
     text = u'test'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))
예제 #6
0
 def test_is_reply_when_true(self):
     replier = HelloReplier()
     text = u'@nozomi_miraha おはよう'
     time = datetime.datetime.today()
     self.assertTrue(replier.is_reply(text, time))
예제 #7
0
 def test_is_reply_when_not_today(self):
     replier = HelloReplier()
     text = u'@nozomi_miraha おはよう'
     time = datetime.datetime(2000, 1, 1)
     self.assertFalse(replier.is_reply(text, time))
예제 #8
0
 def test_is_reply_when_not_include_at(self):
     replier = HelloReplier()
     text = u'おはよう'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))