示例#1
0
文件: topic.py 项目: WorldIRC/WISH
 def test_no_ts_change(self):
     s = StateDouble()
     c = TopicHandler(s)
     c.handle((1,1), ["#test", "New topic"])
     self.assertEquals([("#test", "New topic", 0, 0)], s.insight)
示例#2
0
文件: topic.py 项目: WorldIRC/WISH
 def test_simple_change(self):
     s = StateDouble()
     c = TopicHandler(s)
     c.handle((1,1), ["#test", "8", "10", "New topic"])
     self.assertEquals([("#test", "New topic", 10, 8)], s.insight)