'L{LocalWorker.errReceived} logs the errors into its C{_errLog} log
file.'

def test_errReceived(self):

    fakeTransport = FakeTransport()
    localWorker = LocalWorker(FakeAMProtocol(), '.', 'test.log')
    localWorker.makeConnection(fakeTransport)
    localWorker._errLog = StringIO()
    data = 'The    quick    brown    fox    jumps    over    the    lazy    dog'
    localWorker.errReceived(data)
    self.assertEqual(data, localWorker._errLog.getvalue())
