On Fri, Jun 25, 2010 at 8:30 PM, Charlie Clark
> What are the guidelines on docstrings in unit tests? I'm finding it
> helpful to write some kind of narrative which says what parameters are
> being twiddled and what I expect as a result. Doesn't stop the contortions
> with the method names but might help otherwise.
We generally don't use docstrings in test methods. These will show up
in the test output instead of the test method name and thus make it
harder to find a failing test.
Normal inline comments are perfectly fine and should be used it the
tests intent isn't clear from the code. Most often the test code
should be sufficient to explain itself or require some refactoring.
Zope-CMF maillist - Zope-CMF@zope.org
See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests