Example #1
0
 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)
Example #2
0
 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)