[Zope3-dev] mangled names in tests

R. David Murray bitz@bitdance.com
Fri, 27 Dec 2002 20:53:52 -0500 (EST)


On Mon, 16 Dec 2002, Stephan Richter wrote:
> 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:
>
> 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.

I ran into this today, and Jim, Guido, and I arrived at a slightly
different set of rules than Jim proposed (based on subsequent
experience).  Basicly, use the names 'makeTestObject' and 'makeTestData'
unless you have a good reason not to (this facilitates multiple
mixins testing the same object), and if you do need different names,
use the Interface name in the differentiated names.

I added these rules to the style guide, added a pointer to a real
example of using this style (the one I was working on), and also
did a few other fixups.

--RDM