コード例 #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))