'L{FileLogObserver} calles C{flush()} on the output file when it
observes an event.'

def test_observeFlushes(self):

    with DummyFile() as fileHandle:
        observer = FileLogObserver(fileHandle, (lambda e: unicode(e)))
        event = dict(x=1)
        observer(event)
        self.assertEqual(fileHandle.flushes, 1)
