[Checkins] SVN: grok/trunk/src/grok/ftests/publish/unauthorizednotreraised.py Adapting test to code/codeview split
Reinout van Rees
reinout at vanrees.org
Wed Aug 19 09:16:50 EDT 2009
Log message for revision 102951:
Adapting test to code/codeview split
Changed:
U grok/trunk/src/grok/ftests/publish/unauthorizednotreraised.py
-=-
Modified: grok/trunk/src/grok/ftests/publish/unauthorizednotreraised.py
===================================================================
--- grok/trunk/src/grok/ftests/publish/unauthorizednotreraised.py 2009-08-19 13:15:49 UTC (rev 102950)
+++ grok/trunk/src/grok/ftests/publish/unauthorizednotreraised.py 2009-08-19 13:16:50 UTC (rev 102951)
@@ -11,10 +11,10 @@
When we call the protected view with ``handle_errors`` set to
``False``, we will get no exception but instead an HTTP error:
-
+
>>> from zope.app.testing.functional import HTTPCaller
>>> http_call = HTTPCaller()
-
+
>>> print http_call("GET /app/@@index HTTP/1.1" + chr(13),
... handle_errors=False)
HTTP/1.1 401 Unauthorized
@@ -29,7 +29,7 @@
class App(grok.Application, grok.Container):
pass
-class Index(grok.View):
+class Index(grok.CodeView):
grok.require('grok.Manager')
def render(self):
return 'Hello from protected view'
More information about the Checkins
mailing list