'Construct a status from the given exit code.
@type code: L{int} between 0 and 255 inclusive.
@param code: The exit status which the code will represent.
@rtype: L{int}
@return: A status integer for the given exit code.'

def exitStatus(self, code):

    status = ((code << 8) | 0)
    self.assertTrue(os.WIFEXITED(status))
    self.assertEqual(os.WEXITSTATUS(status), code)
    self.assertFalse(os.WIFSIGNALED(status))
    return status
