[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests -
testDTML.py:1.14.6.2.2.1
Christian Theune
ct at gocept.com
Sat Jan 10 11:15:32 EST 2004
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv27346
Modified Files:
Tag: ctheune-bug1169-branch
testDTML.py
Log Message:
Last Checkin I hope:
- Demonstration of bug #1169 as a unittest
=== Zope/lib/python/DocumentTemplate/tests/testDTML.py 1.14.6.2 => 1.14.6.2.2.1 ===
--- Zope/lib/python/DocumentTemplate/tests/testDTML.py:1.14.6.2 Sat Jan 10 10:35:55 2004
+++ Zope/lib/python/DocumentTemplate/tests/testDTML.py Sat Jan 10 11:15:30 2004
@@ -522,6 +522,11 @@
result = String(s)(data=data)
assert expected == result, result
+ def testNewBuiltins(self):
+ res = self.doc_class(
+ """<dtml-var "_.min([1,2])"><dtml-var "_.max([2,3])><dtml-var "_.enumerate([1,2,3]).next()"><dtml-var "_.iter([1,2]).next()"><dtml-var "_.sum([1,2,3,4])">""")()
+ assert str(res) == "13(0, 1)110"
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite( DTMLTests ) )
More information about the Zope-Checkins
mailing list