Exemplo n.º 1
0
 def test_privmsg_specific(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["*****@*****.**", "Test"])
     self.assertEquals([("*****@*****.**", "Test")], s.insight)
Exemplo n.º 2
0
 def test_privmsg_server(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["$*.org", "Test"])
     self.assertEquals([("$*.org", "Test")], s.insight)
Exemplo n.º 3
0
 def test_privmsg_user(self):
     s = StateDouble()
     c = PrivmsgHandler(s)
     c.handle((1,1), ["ABAAB", "Test"])
     self.assertEquals([((1,1), "Test")], s.insight)