예제 #1
0
 def test_good_string(self):
     ircmsg, actor = botcode.parse_messages(
         ":[email protected] PRIVMSG #deathstar : I find your lack of faith disturbing"
     )
     self.assertEqual([ircmsg, actor], [
         ':[email protected] PRIVMSG #deathstar : I find your lack of faith disturbing',
         'vader'
     ])
예제 #2
0
 def test_bad_string(self):
     ircmsg, actor = botcode.parse_messages(
         "we should probably replace this with a bad string more likely to occur"
     )
     self.assertEqual([ircmsg, actor], [None, None])
예제 #3
0
 def test_bad_string(self):
     ircmsg, actor = botcode.parse_messages("we should probably replace this with a bad string more likely to occur")
     self.assertEqual([ircmsg, actor], [None, None])
예제 #4
0
 def test_good_string(self):
     ircmsg, actor = botcode.parse_messages(":[email protected] PRIVMSG #deathstar : I find your lack of faith disturbing")
     self.assertEqual([ircmsg, actor], [':[email protected] PRIVMSG #deathstar : I find your lack of faith disturbing', 'vader'])