'FileLogObserver.emit() will append a newline to its file output.'

def test_emitNewline(self):

    output = StringIO()
    flo = log.FileLogObserver(output)
    publisher = log.LogPublisher()
    publisher.addObserver(flo.emit)
    publisher.msg('Hello!')
    result = output.getvalue()
    suffix = 'Hello!\n'
    self.assertTrue(result.endswith(suffix), '{0!r}    does    not    end    with    {1!r}'.format(result, suffix))
