示例#1
0
文件: privmsg.py 项目: WorldIRC/WISH
 def test_privmsg_specific(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["*****@*****.**", "Test"])
     self.assertEquals([("*****@*****.**", "Test")], s.insight)
示例#2
0
文件: privmsg.py 项目: WorldIRC/WISH
 def test_privmsg_server(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["$*.org", "Test"])
     self.assertEquals([("$*.org", "Test")], s.insight)
示例#3
0
文件: privmsg.py 项目: WorldIRC/WISH
 def test_privmsg_user(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["ABAAB", "Test"])
     self.assertEquals([((1,1), "Test")], s.insight)