[ZPT] CVS: Packages/Products/PageTemplates (Products/DC/PageTemplates) - testTALES.py:1.1.6.1
evan@serenade.digicool.com
evan@serenade.digicool.com
Sat, 16 Jun 2001 11:56:01 -0400
Update of /cvs-repository/Packages/Products/PageTemplates/tests
In directory serenade:/home/evan/Zope/pt/lib/python/Products/PageTemplates/tests
Modified Files:
Tag: zpt-1_3_0
testTALES.py
Log Message:
Merge trunk changes for release 1.3.2
--- Updated File testTALES.py in package Packages/Products/PageTemplates --
--- testTALES.py 2001/03/23 17:19:17 1.1
+++ testTALES.py 2001/06/16 15:55:31 1.1.6.1
@@ -89,25 +89,25 @@
def testVariables(self):
'''Test variables'''
ctxt = self.getContext()
- c = ctxt.contexts
+ c = ctxt.vars
ctxt.beginScope()
ctxt.setLocal('v1', 1)
ctxt.setLocal('v2', 2)
- assert c['var']['v1'] == 1, 'Variable "v1"'
+ assert c['v1'] == 1, 'Variable "v1"'
ctxt.beginScope()
ctxt.setLocal('v1', 3)
ctxt.setGlobal('g', 1)
- assert c['var']['v1'] == 3, 'Inner scope'
- assert c['var']['v2'] == 2, 'Outer scope'
- assert c['var']['g'] == 1, 'Global'
+ assert c['v1'] == 3, 'Inner scope'
+ assert c['v2'] == 2, 'Outer scope'
+ assert c['g'] == 1, 'Global'
ctxt.endScope()
- assert c['var']['v1'] == 1, "Uncovered local"
- assert c['var']['g'] == 1, "Global from inner scope"
+ assert c['v1'] == 1, "Uncovered local"
+ assert c['g'] == 1, "Global from inner scope"
ctxt.endScope()