[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate/tests - testDTML.py:1.11
Toby Dickenson
tdickenson@geminidataloggers.com
Wed, 24 Apr 2002 10:38:41 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv23547/tests
Modified Files:
testDTML.py
Log Message:
merged toby-dtml-in-namespace-branch for collector 358: new dtml-in parameter no_push_item
=== Zope/lib/python/DocumentTemplate/tests/testDTML.py 1.10 => 1.11 ===
+ def testNoItemPush(self):
+ data=d(sec='B', name='XXX', sub=(d(name='b1'),d(name='b2',sec='XXX')))
+ html = """
+<dtml-with data mapping><dtml-in sub no_push_item>
+ <dtml-var sec>.<dtml-with sequence-item mapping><dtml-var name></dtml-with>
+</dtml-in></dtml-with>
+"""
+ expected = """
+ B.b1 B.b2"""
+ result = self.doc_class(html)(data=data)
+ assert result == expected, result
+
def testBasicHTMLIn(self):
data=(
d(name='jim', age=39),