[Checkins]
SVN: grok/branches/timte-json/src/grok/tests/json/view_lookup.py
Extend this test a little.
Martijn Faassen
faassen at infrae.com
Mon Apr 16 12:32:02 EDT 2007
Log message for revision 74185:
Extend this test a little.
Changed:
U grok/branches/timte-json/src/grok/tests/json/view_lookup.py
-=-
Modified: grok/branches/timte-json/src/grok/tests/json/view_lookup.py
===================================================================
--- grok/branches/timte-json/src/grok/tests/json/view_lookup.py 2007-04-16 16:30:52 UTC (rev 74184)
+++ grok/branches/timte-json/src/grok/tests/json/view_lookup.py 2007-04-16 16:32:01 UTC (rev 74185)
@@ -15,6 +15,12 @@
>>> view()
'{"me": "grok"}'
+Let's try calling another method::
+
+ >>> view = getMultiAdapter((mammoth, request), name='another')
+ >>> view()
+ '{"another": "grok"}'
+
"""
import grok
@@ -26,3 +32,7 @@
def run(self):
return { 'me': 'grok' }
+
+ def another(self):
+ return { 'another': 'grok'}
+
More information about the Checkins
mailing list