Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Normalize import statement formatting.
Browse files Browse the repository at this point in the history
Verify that ZCTextIndex implements the PluggableIndexInterface.
  • Loading branch information
gvanrossum committed May 21, 2002
1 parent cfd61ec commit 273fcb7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/testZCTextIndex.py
Expand Up @@ -12,9 +12,14 @@
#
##############################################################################

from Interface import verify_class_implementation

from Products.PluginIndexes.common.PluggableIndex import \
PluggableIndexInterface

from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
from Products.ZCTextIndex.tests \
import testIndex, testQueryEngine, testQueryParser
from Products.ZCTextIndex.tests import \
testIndex, testQueryEngine, testQueryParser
from Products.ZCTextIndex.BaseIndex import \
scaled_int, SCALE_FACTOR, inverse_doc_frequency
from Products.ZCTextIndex.CosineIndex import CosineIndex
Expand Down Expand Up @@ -183,6 +188,9 @@ 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 testRanking(self):
self.words = ["cold", "days", "eat", "hot", "lot", "nine", "old",
"pease", "porridge", "pot"]
Expand Down

0 comments on commit 273fcb7

Please sign in to comment.