[Checkins] SVN: grok/trunk/src/grok/tests/view/inline.py test for
global page template variables
Philipp von Weitershausen
philikon at philikon.de
Sun Oct 15 11:02:08 EDT 2006
Log message for revision 70657:
test for global page template variables
Changed:
U grok/trunk/src/grok/tests/view/inline.py
-=-
Modified: grok/trunk/src/grok/tests/view/inline.py
===================================================================
--- grok/trunk/src/grok/tests/view/inline.py 2006-10-15 14:58:08 UTC (rev 70656)
+++ grok/trunk/src/grok/tests/view/inline.py 2006-10-15 15:02:07 UTC (rev 70657)
@@ -11,7 +11,15 @@
>>> view = component.getMultiAdapter((manfred, request), name='cavepainting')
>>> print view()
<html>
- <body><h1>Mammoth Cave Painting</h1></body>
+ <body>
+ <h1>Mammoth Cave Painting</h1>
+ <ul>
+ <li><zope.publisher.browser.TestRequest instance URL=http://127.0.0.1></li>
+ <li><grok.tests.view.inline.CavePainting object at 0x...></li>
+ <li><grok.tests.view.inline.Mammoth object at 0x...></li>
+ <li><zope.app.pagetemplate.engine.TraversableModuleImporter object at 0x...></li>
+ </ul>
+ </body>
</html>
"""
import grok
@@ -24,6 +32,14 @@
cavepainting_pt = """\
<html>
-<body><h1 tal:content="string:Mammoth Cave Painting"/></body>
+<body>
+<h1 tal:content="string:Mammoth Cave Painting"/>
+<ul>
+ <li tal:content="structure python:repr(request)" />
+ <li tal:content="structure nocall:view" />
+ <li tal:content="structure nocall:context" />
+ <li tal:content="structure nocall:modules" />
+</ul>
+</body>
</html>
"""
More information about the Checkins
mailing list