예제 #1
0
파일: notice.py 프로젝트: WorldIRC/WISH
 def testNoticeSpecific(self):
     s = StateDouble()
     c = NoticeHandler(s)
     c.handle((1,1), ["*****@*****.**", "Test"])
     self.assertEquals([("*****@*****.**", "Test")], s.insight)
예제 #2
0
파일: notice.py 프로젝트: WorldIRC/WISH
 def testNoticeServer(self):
     s = StateDouble()
     c = NoticeHandler(s)
     c.handle((1,1), ["$*.org", "Test"])
     self.assertEquals([("$*.org", "Test")], s.insight)
예제 #3
0
파일: notice.py 프로젝트: WorldIRC/WISH
 def testNoticeUser(self):
     s = StateDouble()
     c = NoticeHandler(s)
     c.handle((1,1), ["ABAAB", "Test"])
     self.assertEquals([((1,1), "Test")], s.insight)