[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests - testNormalizer.py:1.1.2.5

Andreas Jung andreas@digicool.com
Thu, 7 Feb 2002 14:33:30 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests
In directory cvs.zope.org:/tmp/cvs-serv14015/tests

Modified Files:
      Tag: ajung-textindexng-branch
	testNormalizer.py 
Log Message:
minor fixes


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/tests/testNormalizer.py 1.1.2.4 => 1.1.2.5 ===
 
 from Products.PluginIndexes.TextIndexNG import normalizer
+from Products.PluginIndexes.TextIndexNG.BaseNormalizer import BaseNormalizer
 from BTrees.IIBTree import IISet, difference
 
-class Tests(unittest.TestCase):
+class CModuleTests(unittest.TestCase):
 
     norm = [
             ('Ä','Ae'),
@@ -63,8 +64,18 @@
                 )
 
 
+class BaseNormalizerTests(CModuleTests):
+
+    def setUp(self):
+        self.N = BaseNormalizer( self.norm )
+
+
+
 def test_suite():
-    return unittest.makeSuite(Tests)
+    s = unittest.TestSuite()
+    s.addTest(unittest.makeSuite(CModuleTests))
+    s.addTest(unittest.makeSuite(BaseNormalizerTests))
+    return s
 
 def main():
     unittest.TextTestRunner().run(test_suite())