'L{LocalWorker.outReceived} logs the output into its C{_outLog} log
file.'

def test_outReceived(self):

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