[Checkins] SVN:	grok/trunk/src/grok/ftests/security/preserve_permissions.py	Check, whether we can access resources unauthenticated.
    Uli Fouquet 
    uli at gnufix.de
       
    Fri Dec 12 07:36:18 EST 2008
    
    
  
Log message for revision 93942:
  Check, whether we can access resources unauthenticated.
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	2008-12-12 12:35:35 UTC (rev 93941)
+++ grok/trunk/src/grok/ftests/security/preserve_permissions.py	2008-12-12 12:36:17 UTC (rev 93942)
@@ -52,6 +52,13 @@
   ...
   httperror_seek_wrapper: HTTP Error 401: Unauthorized
 
+We have some static resources defined in a local `static` directory,
+which we can access unauthenticated::
+
+  >>> browser.open('http://localhost/@@/grok.ftests.security/textfile.txt')
+  >>> print browser.contents
+  Just a test.
+
 When we authenticate, everything works fine::
 
   >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    
    
More information about the Checkins
mailing list