[Zope3-dev] mangled names in tests

Stephan Richter stephan.richter@tufts.edu
Mon, 16 Dec 2002 02:26:52 -0500


On Saturday 14 December 2002 08:39, Jim Fulton wrote:
> OK, so let's agree that we won't use mangled names this way anymore.
> In general, I suggest that when a testing framework requires a
> method to be defined that:
>
> - It documents this requirement in it's doc string. (I failed to do this
>    in a numner of cases. Bad me.)
>
> - The names required reflect the framework in some way (e.g. _newMapping
>    _sampleMappingData)
>
> - The names required should begin with a single underscore to indicate that
>    they are methods needed by (private too) an inherited framework
>    (like C++ protected).

This should go into the style guide. I am a little out of this Wiki, who is 
maintaining the testing guides? David? If you tell me where it should go I'll 
add it in.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training