'Assert that if the fork call fails, no other process setup calls are
made and that spawnProcess raises the exception fork raised.'

def _mockWithForkError(self):

    self.mockos.raiseFork = OSError(errno.EAGAIN, None)
    protocol = TrivialProcessProtocol(None)
    self.assertRaises(OSError, reactor.spawnProcess, protocol, None)
    self.assertEqual(self.mockos.actions, [('fork', False)])
