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
97131918
Commit
97131918
authored
Jun 10, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use verifyClass().
parent
6f5d92ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
lib/python/Products/ZCTextIndex/tests/testQueryParser.py
lib/python/Products/ZCTextIndex/tests/testQueryParser.py
+10
-10
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
+3
-3
No files found.
lib/python/Products/ZCTextIndex/tests/testQueryParser.py
View file @
97131918
...
...
@@ -14,7 +14,7 @@
from
unittest
import
TestCase
,
TestSuite
,
main
,
makeSuite
##from Interface import verify_class_implementation
from
Interface.Verify
import
verifyClass
from
Products.ZCTextIndex.IQueryParser
import
IQueryParser
from
Products.ZCTextIndex.IQueryParseTree
import
IQueryParseTree
...
...
@@ -29,14 +29,14 @@ from Products.ZCTextIndex.Lexicon import Lexicon, Splitter
class
TestInterfaces
(
TestCase
):
def
testInterfaces
(
self
):
verify
_class_implementation
(
IQueryParser
,
QueryParser
)
verify
_class_implementation
(
IQueryParseTree
,
ParseTreeNode
)
verify
_class_implementation
(
IQueryParseTree
,
OrNode
)
verify
_class_implementation
(
IQueryParseTree
,
AndNode
)
verify
_class_implementation
(
IQueryParseTree
,
NotNode
)
verify
_class_implementation
(
IQueryParseTree
,
AtomNode
)
verify
_class_implementation
(
IQueryParseTree
,
PhraseNode
)
verify
_class_implementation
(
IQueryParseTree
,
GlobNode
)
verify
Class
(
IQueryParser
,
QueryParser
)
verify
Class
(
IQueryParseTree
,
ParseTreeNode
)
verify
Class
(
IQueryParseTree
,
OrNode
)
verify
Class
(
IQueryParseTree
,
AndNode
)
verify
Class
(
IQueryParseTree
,
NotNode
)
verify
Class
(
IQueryParseTree
,
AtomNode
)
verify
Class
(
IQueryParseTree
,
PhraseNode
)
verify
Class
(
IQueryParseTree
,
GlobNode
)
class
TestQueryParserBase
(
TestCase
):
...
...
@@ -289,7 +289,7 @@ class FakeStopWordRemover:
def
test_suite
():
return
TestSuite
((
makeSuite
(
TestQueryParser
),
makeSuite
(
StopWordTestQueryParser
),
##
makeSuite(TestInterfaces),
makeSuite
(
TestInterfaces
),
))
...
...
lib/python/Products/ZCTextIndex/tests/testZCTextIndex.py
View file @
97131918
...
...
@@ -12,7 +12,7 @@
#
##############################################################################
##from Interface import verify_class_implementation
from
Interface.Verify
import
verifyClass
from
Products.PluginIndexes.common.PluggableIndex
import
\
PluggableIndexInterface
...
...
@@ -188,8 +188,8 @@ class CosineIndexTests(ZCIndexTestsBase, testIndex.CosineIndexTest):
# Gigabytes, pp. 180-188. This test peeks into many internals of the
# cosine indexer.
##
def testInterface(self):
## verify_class_implementation
(PluggableIndexInterface, ZCTextIndex)
def testInterface(self):
verifyClass
(PluggableIndexInterface, ZCTextIndex)
def testRanking(self):
self.words = ["
cold
", "
days
", "
eat
", "
hot
", "
lot
", "
nine
", "
old
",
...
...
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