Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))
 def test_is_reply_when_unmatch_text(self):
     replier = HelloReplier()
     text = u'test'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))
 def test_is_reply_when_true(self):
     replier = HelloReplier()
     text = u'@nozomi_miraha おはよう'
     time = datetime.datetime.today()
     self.assertTrue(replier.is_reply(text, time))
 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))
 def test_is_reply_when_not_include_at(self):
     replier = HelloReplier()
     text = u'おはよう'
     time = datetime.datetime.today()
     self.assertFalse(replier.is_reply(text, time))