[Checkins] SVN: grok/trunk/src/grok/ftests/security/preserve_permissions.py Requests should not start with whitespace.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Fri Mar 4 18:01:30 EST 2011
Log message for revision 120749:
Requests should not start with whitespace.
Changed:
U grok/trunk/src/grok/ftests/security/preserve_permissions.py
-=-
Modified: grok/trunk/src/grok/ftests/security/preserve_permissions.py
===================================================================
--- grok/trunk/src/grok/ftests/security/preserve_permissions.py 2011-03-04 17:06:29 UTC (rev 120748)
+++ grok/trunk/src/grok/ftests/security/preserve_permissions.py 2011-03-04 23:01:29 UTC (rev 120749)
@@ -30,9 +30,7 @@
`zope.ManageContent` and should not be visible to unauthenticated
users. Instead we are asked to authenticate ourselves::
- >>> print http(r'''
- ... GET /@@contents.html HTTP/1.1
- ... ''')
+ >>> print http('GET /@@contents.html HTTP/1.1')
HTTP/1.0 401 Unauthorized
...
@@ -46,9 +44,7 @@
Now there is a ``contents.html`` view available for our application,
which is protected by default::
- >>> print http(r'''
- ... GET /app/@@contents.html HTTP/1.1
- ... ''')
+ >>> print http('GET /app/@@contents.html HTTP/1.1')
HTTP/1.0 401 Unauthorized
...
@@ -60,9 +56,7 @@
>>> root_perms = IPrincipalPermissionManager(root)
>>> root_perms.grantPermissionToPrincipal('zope.ManageContent',
... 'zope.anybody')
- >>> print http(r'''
- ... GET /@@contents.html HTTP/1.1
- ... ''')
+ >>> print http('GET /@@contents.html HTTP/1.1')
HTTP/1.0 200 Ok
...
More information about the checkins
mailing list