[Zope-CVS] CVS: Products/ZCTextIndex/tests - testQueryParser.py:1.10 testZCTextIndex.py:1.34

Guido van Rossum guido@python.org
Mon, 10 Jun 2002 13:25:32 -0400


Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv5391

Modified Files:
	testQueryParser.py testZCTextIndex.py 
Log Message:
Use verifyClass().


=== Products/ZCTextIndex/tests/testQueryParser.py 1.9 => 1.10 ===
 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 @@
 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)
+        verifyClass(IQueryParser, QueryParser)
+        verifyClass(IQueryParseTree, ParseTreeNode)
+        verifyClass(IQueryParseTree, OrNode)
+        verifyClass(IQueryParseTree, AndNode)
+        verifyClass(IQueryParseTree, NotNode)
+        verifyClass(IQueryParseTree, AtomNode)
+        verifyClass(IQueryParseTree, PhraseNode)
+        verifyClass(IQueryParseTree, GlobNode)
 
 
 class TestQueryParserBase(TestCase):
@@ -289,7 +289,7 @@
 def test_suite():
     return TestSuite((makeSuite(TestQueryParser),
                       makeSuite(StopWordTestQueryParser),
-##                      makeSuite(TestInterfaces),
+                      makeSuite(TestInterfaces),
                     ))
 
 


=== Products/ZCTextIndex/tests/testZCTextIndex.py 1.33 => 1.34 ===
 ##############################################################################
 
-##from Interface import verify_class_implementation
+from Interface.Verify import verifyClass
 
 from Products.PluginIndexes.common.PluggableIndex import \
      PluggableIndexInterface
@@ -188,8 +188,8 @@
     # 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",