def test_join_no_ts(self): s = StateDouble() c = JoinHandler(s) c.handle((1,1), ["#foo"]) self.assertEquals(("#foo", 1270080000), s.channel)
def test_part_all(self): s = StateDouble() c = JoinHandler(s) c.handle((1,1), ["0"]) self.assertEquals("partall", s.channel)
def test_join(self): s = StateDouble() c = JoinHandler(s) c.handle((1,1), ["#foo", "81"]) self.assertEquals(("#foo", 81), s.channel)