Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
721e595d
Commit
721e595d
authored
Apr 12, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make interface implementations explicit.
parent
88ea1513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
+16
-6
No files found.
src/Products/PluginIndexes/PathIndex/tests/testPathIndex.py
View file @
721e595d
...
...
@@ -63,15 +63,15 @@ class PathIndexTests(unittest.TestCase):
return
self
.
_getTargetClass
()(
id
,
caller
)
return
self
.
_getTargetClass
()(
id
)
def
test_class_conforms_to_IP
ath
Index
(
self
):
from
Products.PluginIndexes.interfaces
import
IP
ath
Index
def
test_class_conforms_to_IP
luggable
Index
(
self
):
from
Products.PluginIndexes.interfaces
import
IP
luggable
Index
from
zope.interface.verify
import
verifyClass
verifyClass
(
IP
ath
Index
,
self
.
_getTargetClass
())
verifyClass
(
IP
luggable
Index
,
self
.
_getTargetClass
())
def
test_instance_conforms_to_IP
ath
Index
(
self
):
from
Products.PluginIndexes.interfaces
import
IP
ath
Index
def
test_instance_conforms_to_IP
luggable
Index
(
self
):
from
Products.PluginIndexes.interfaces
import
IP
luggable
Index
from
zope.interface.verify
import
verifyObject
verifyObject
(
IP
ath
Index
,
self
.
_makeOne
())
verifyObject
(
IP
luggable
Index
,
self
.
_makeOne
())
def
test_class_conforms_to_IUniqueValueIndex
(
self
):
from
Products.PluginIndexes.interfaces
import
IUniqueValueIndex
...
...
@@ -83,6 +83,16 @@ class PathIndexTests(unittest.TestCase):
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment