'L{LogPublisher} calls its observers.'

def test_fanOut(self):

    event = dict(foo=1, bar=2)
    events1 = []
    events2 = []
    events3 = []
    o1 = (lambda e: events1.append(e))
    o2 = (lambda e: events2.append(e))
    o3 = (lambda e: events3.append(e))
    publisher = LogPublisher(o1, o2, o3)
    publisher(event)
    self.assertIn(event, events1)
    self.assertIn(event, events2)
    self.assertIn(event, events3)
