コード例 #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)