[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex/tests - testLexicon.py:1.5.16.3

Casey Duncan casey@zope.com
Thu, 5 Jun 2003 11:38:06 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv18234/tests

Modified Files:
      Tag: casey-zctextindex-fewer-conflicts-branch
	testLexicon.py 
Log Message:
Get rid of spurious character
Improve tests a bit to confirm data integrity within a transaction with multiple lexicon updates


=== Zope/lib/python/Products/ZCTextIndex/tests/testLexicon.py 1.5.16.2 => 1.5.16.3 ===
--- Zope/lib/python/Products/ZCTextIndex/tests/testLexicon.py:1.5.16.2	Thu Jun  5 11:01:11 2003
+++ Zope/lib/python/Products/ZCTextIndex/tests/testLexicon.py	Thu Jun  5 11:38:05 2003
@@ -171,7 +171,8 @@
         self.l.sourceToWordIds('mary had a little lamb')
         get_transaction().commit()
         
-        copy.sourceToWordIds('whose fleece was white as snow')
+        copy.sourceToWordIds('whose fleece was')
+        copy.sourceToWordIds('white as snow')
         get_transaction().commit()
         self.assertEqual(copy.length(), 11)
         self.assertEqual(copy.length(), len(copy._words))