'If a C{True} value is supplied for the C{errortoo} parameter to
L{getProcessOutput}, the returned L{Deferred} fires with the child\'s
stderr output as well as its stdout output.'

def test_outputWithErrorCollected(self):

    scriptFile = self.makeSourceFile(['import    sys', 'sys.stdout.write("foo")', 'sys.stdout.flush()', 'sys.stderr.write("foo")', 'sys.stderr.flush()'])
    d = utils.getProcessOutput(self.exe, ['-u', scriptFile], errortoo=True)
    return d.addCallback(self.assertEqual, 'foofoo')
