'L{main} forwards data from its input stream to a L{WorkerProtocol}
instance which writes data to the output stream.'

def test_forwardCommand(self):

    client = FakeAMP()
    clientTransport = StringTransport()
    client.makeConnection(clientTransport)
    client.callRemote(workercommands.Run, testCase='doesntexist')
    self.readStream = clientTransport.io
    self.readStream.seek(0, 0)
    main(self.fdopen)
    self.assertIn("No    module    named    'doesntexist'", self.writeStream.getvalue())
