[Zope-Checkins] SVN: Zope/branches/2.12/src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py Make interface implementations explicit.
Tres Seaver
tseaver at palladion.com
Mon Apr 12 12:42:49 EDT 2010
Log message for revision 110753:
Make interface implementations explicit.
Changed:
U Zope/branches/2.12/src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
-=-
Modified: Zope/branches/2.12/src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
===================================================================
--- Zope/branches/2.12/src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 2010-04-12 16:26:29 UTC (rev 110752)
+++ Zope/branches/2.12/src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py 2010-04-12 16:42:49 UTC (rev 110753)
@@ -63,15 +63,15 @@
return self._getTargetClass()(id, caller)
return self._getTargetClass()(id)
- def test_class_conforms_to_IPathIndex(self):
- from Products.PluginIndexes.interfaces import IPathIndex
+ def test_class_conforms_to_IPluggableIndex(self):
+ from Products.PluginIndexes.interfaces import IPluggableIndex
from zope.interface.verify import verifyClass
- verifyClass(IPathIndex, self._getTargetClass())
+ verifyClass(IPluggableIndex, self._getTargetClass())
- def test_instance_conforms_to_IPathIndex(self):
- from Products.PluginIndexes.interfaces import IPathIndex
+ def test_instance_conforms_to_IPluggableIndex(self):
+ from Products.PluginIndexes.interfaces import IPluggableIndex
from zope.interface.verify import verifyObject
- verifyObject(IPathIndex, self._makeOne())
+ verifyObject(IPluggableIndex, self._makeOne())
def test_class_conforms_to_IUniqueValueIndex(self):
from Products.PluginIndexes.interfaces import IUniqueValueIndex
@@ -83,6 +83,16 @@
from zope.interface.verify import verifyObject
verifyObject(IUniqueValueIndex, self._makeOne())
+ def test_class_conforms_to_IPathIndex(self):
+ from Products.PluginIndexes.interfaces import IPathIndex
+ from zope.interface.verify import verifyClass
+ verifyClass(IPathIndex, self._getTargetClass())
+
+ def test_instance_conforms_to_IPathIndex(self):
+ from Products.PluginIndexes.interfaces import IPathIndex
+ from zope.interface.verify import verifyObject
+ verifyObject(IPathIndex, self._makeOne())
+
def test_ctor(self):
index = self._makeOne()
self.assertEqual(index.id, 'path')
More information about the Zope-Checkins
mailing list