[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTMLUnicode.py:1.4

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 16 Sep 2002 06:09:12 -0400


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

Modified Files:
	testDTMLUnicode.py 
Log Message:
merging toby-unicode-size-branch, a fix for a regression introduced by TaintedString changes, reported as collector #565

=== Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.py 1.3 => 1.4 ===
--- Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.py:1.3	Wed Aug 14 18:29:53 2002
+++ Zope/lib/python/DocumentTemplate/tests/testDTMLUnicode.py	Mon Sep 16 06:09:11 2002
@@ -81,6 +81,12 @@
         res = html(a=u'he>llo',b=chr(200))
         assert res == expected, `res`
 
+    def testSize(self):
+        html=self.doc_class('<dtml-var "_.unichr(200)*4" size=2>')
+        expected = unichr(200)*2+'...'
+        res = html()
+        assert res == expected, `res`
+
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest( unittest.makeSuite( DTMLUnicodeTests ) )