[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/DependencyFramework/tests - BaseTestIDependable.py:1.1 __init__.py:1.1 testDependable.py:1.1

Jim Fulton jim@zope.com
Mon, 14 Oct 2002 12:15:03 -0400


Martijn Pieters wrote:
> On Mon, Oct 14, 2002 at 07:51:05AM -0400, Jim Fulton wrote:
> 
>>class BaseTestIDependable:
>>
>           [.......]
> 
> 
>>    def testVerifyInterface(self):
>>
>           [.......]
> 
> 
>>    def test(self):
>>
>           [.......]
> 
> These are very generic method names for a mixin test class. What if all
> Interface test mixins used these method names? I wouldn't be able to
> implement a test for an object that implemented multiple interfaces, because
> only one test mixin would be visible.
> 
> In our current project we make wide use of interface class test mixins and
> they all have explicit, verbose test names. A super-generic name like 'test'
> would spell disaster here..

Your point is well taken. Note that this is a test that we knew would
not be mixed with any other base tests but that would be used for
two similar sets of tests.  Still, sticking to a standard naming convention would
be better,

Jim



-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org