'Test that we can inherit L{log.PythonLoggingObserver} and use super:
that\'s basically a validation that L{log.PythonLoggingObserver} is
new-style class.'

def test_inheritance(self):

    class MyObserver(log.PythonLoggingObserver, ):
        def emit(self, eventDict):
            super(MyObserver, self).emit(eventDict)
    obs = MyObserver()
    l = []
    oldEmit = log.PythonLoggingObserver.emit
    try:
        log.PythonLoggingObserver.emit = l.append
        obs.emit('foo')
        self.assertEqual(len(l), 1)
    finally:
        log.PythonLoggingObserver.emit = oldEmit
