'Test that C{beginLoggingTo()} adds observers.'

def test_beginLoggingToAddObservers(self):

    event = dict(foo=1, bar=2)
    events1 = []
    events2 = []
    o1 = (lambda e: events1.append(e))
    o2 = (lambda e: events2.append(e))
    self.beginner.beginLoggingTo((o1, o2))
    self.publisher(event)
    self.assertEqual([event], events1)
    self.assertEqual([event], events2)
