void () { EpydocString docString = createEpydocDocString(""" Run the given function wrapped with seteuid/setegid calls. This will try to minimize the number of seteuid/setegid calls, comparing current and wanted permissions @param euid: effective UID used to call the function. @type euid: C{int} @param egid: effective GID used to call the function. @type egid: C{int} @param function: the function run with the specific permission. @type function: any callable @param *args: arguments passed to function @param **kwargs: keyword arguments passed to C{function} \s @return: the return value of the function\ """); final List<String> params = docString.getParameters(); assertOrderedEquals(params, "euid", "egid", "function", "*args", "**kwargs"); assertEquals("effective UID used to call the function.", docString.getParamDescription("euid")); assertEquals("effective GID used to call the function.", docString.getParamDescription("egid")); assertEquals("arguments passed to function", docString.getParamDescription("args")); assertEquals("the return value of the function", docString.getReturnDescription()); }