'When spawning a child process with a UID different from the UID of the
current process, the current process does not have its UID changed.'

def test_mockSetUidInParent(self):

    self.mockos.child = False
    cmd = '/mock/ouch'
    d = defer.Deferred()
    p = TrivialProcessProtocol(d)
    reactor.spawnProcess(p, cmd, ['ouch'], env=None, usePTY=False, uid=8080)
    self.assertEqual(self.mockos.actions, [('fork', False), 'waitpid'])
