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