'L{getProcessOutput} returns a L{Deferred} which fires with the complete
output of the process it runs after that process exits.'

def test_output(self):

    scriptFile = self.makeSourceFile(['import    sys', "for    s    in    b'hello    world\\n':", "                if    hasattr(sys.stdout,    'buffer'):", '                                #    Python    3', '                                s    =    bytes([s])', '                                sys.stdout.buffer.write(s)', '                else:', '                                #    Python    2', '                                sys.stdout.write(s)', '                sys.stdout.flush()'])
    d = utils.getProcessOutput(self.exe, ['-u', scriptFile])
    return d.addCallback(self.assertEqual, 'hello    world\n')
