Commit 721e595d authored by Tres Seaver's avatar Tres Seaver

Make interface implementations explicit.

parent 88ea1513
...@@ -63,15 +63,15 @@ class PathIndexTests(unittest.TestCase): ...@@ -63,15 +63,15 @@ class PathIndexTests(unittest.TestCase):
return self._getTargetClass()(id, caller) return self._getTargetClass()(id, caller)
return self._getTargetClass()(id) return self._getTargetClass()(id)
def test_class_conforms_to_IPathIndex(self): def test_class_conforms_to_IPluggableIndex(self):
from Products.PluginIndexes.interfaces import IPathIndex from Products.PluginIndexes.interfaces import IPluggableIndex
from zope.interface.verify import verifyClass from zope.interface.verify import verifyClass
verifyClass(IPathIndex, self._getTargetClass()) verifyClass(IPluggableIndex, self._getTargetClass())
def test_instance_conforms_to_IPathIndex(self): def test_instance_conforms_to_IPluggableIndex(self):
from Products.PluginIndexes.interfaces import IPathIndex from Products.PluginIndexes.interfaces import IPluggableIndex
from zope.interface.verify import verifyObject from zope.interface.verify import verifyObject
verifyObject(IPathIndex, self._makeOne()) verifyObject(IPluggableIndex, self._makeOne())
def test_class_conforms_to_IUniqueValueIndex(self): def test_class_conforms_to_IUniqueValueIndex(self):
from Products.PluginIndexes.interfaces import IUniqueValueIndex from Products.PluginIndexes.interfaces import IUniqueValueIndex
...@@ -83,6 +83,16 @@ class PathIndexTests(unittest.TestCase): ...@@ -83,6 +83,16 @@ class PathIndexTests(unittest.TestCase):
from zope.interface.verify import verifyObject from zope.interface.verify import verifyObject
verifyObject(IUniqueValueIndex, self._makeOne()) 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): def test_ctor(self):
index = self._makeOne() index = self._makeOne()
self.assertEqual(index.id, 'path') self.assertEqual(index.id, 'path')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment