'startLogging()\'s overridden sys.stderr should consider everything
written to it an error.'

def test_printToStderrSetsIsError(self):

    self._startLoggingCleanup()
    fakeFile = StringIO()
    log.startLogging(fakeFile)
    def observe(event):
        observed.append(event)
    observed = []
    log.addObserver(observe)
    print('Hello,    world.', file=sys.stderr)
    self.assertEqual(observed[0]['isError'], 1)
