void () { final EpydocString docstring = createEpydocDocString(""" @param p1: p1 description @parameter p2: p2 description @arg p3: p3 description @argument p4: p4 description @kwarg key1: key1 description @keyword key2: key2 description @kwparam key3: key3 description @raises Exc1: Exc1 description \s @raise Exc2: Exc2 description\s @except Exc3: Exc3 description\s @exception Exc4: Exc4 description\s"""); assertSameElements(docstring.getParameters(), "p1", "p2", "p3", "p4"); assertEquals("p1 description", docstring.getParamDescription("p1")); assertEquals("p2 description", docstring.getParamDescription("p2")); assertEquals("p3 description", docstring.getParamDescription("p3")); assertEquals("p4 description", docstring.getParamDescription("p4")); assertSameElements(docstring.getKeywordArguments(), "key1", "key2", "key3"); assertEquals("key1 description", docstring.getKeywordArgumentDescription("key1")); assertEquals("key2 description", docstring.getKeywordArgumentDescription("key2")); assertEquals("key3 description", docstring.getKeywordArgumentDescription("key3")); assertSameElements(docstring.getRaisedExceptions(), "Exc1", "Exc2", "Exc3", "Exc4"); assertEquals("Exc1 description", docstring.getRaisedExceptionDescription("Exc1")); assertEquals("Exc2 description", docstring.getRaisedExceptionDescription("Exc2")); assertEquals("Exc3 description", docstring.getRaisedExceptionDescription("Exc3")); assertEquals("Exc4 description", docstring.getRaisedExceptionDescription("Exc4")); }