[Zope-Checkins] CVS: Zope/lib/python/ZTUtils/tests - testTree.py:1.6

Casey Duncan casey at zope.com
Tue May 4 15:33:10 EDT 2004


Update of /cvs-repository/Zope/lib/python/ZTUtils/tests
In directory cvs.zope.org:/tmp/cvs-serv21759/lib/python/ZTUtils/tests

Modified Files:
	testTree.py 
Log Message:
Make sure encoding of tree state does not include newline characters (issue #122
6)


=== Zope/lib/python/ZTUtils/tests/testTree.py 1.5 => 1.6 ===
--- Zope/lib/python/ZTUtils/tests/testTree.py:1.5	Thu Jan 15 18:00:17 2004
+++ Zope/lib/python/ZTUtils/tests/testTree.py	Tue May  4 15:33:08 2004
@@ -187,6 +187,7 @@
         treeroot1 = self.tm.tree(self.root, self.expansionmap)
 
         encoded = Tree.encodeExpansion(treeroot1.flat())
+        self.failIf(encoded.find('\n') != -1)
         decodedmap = Tree.decodeExpansion(encoded)
 
         treeroot2 = self.tm.tree(self.root, decodedmap)




More information about the Zope-Checkins mailing list