[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTMLUnicode.py:1.3.6.1
Toby Dickenson
tdickenson@geminidataloggers.com
Mon, 16 Sep 2002 06:10:26 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv22106/tests
Modified Files:
Tag: Zope-2_6-branch
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.3.6.1 ===
--- 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:10:26 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 ) )