[Checkins] SVN: megrok.login/trunk/src/megrok/login/tests/custompausetup.py Fix imports and test that fails without more packages loaded on

Uli Fouquet uli at gnufix.de
Wed Feb 9 06:51:55 EST 2011


Log message for revision 120235:
  Fix imports and test that fails without more packages loaded on
  startup.
  

Changed:
  U   megrok.login/trunk/src/megrok/login/tests/custompausetup.py

-=-
Modified: megrok.login/trunk/src/megrok/login/tests/custompausetup.py
===================================================================
--- megrok.login/trunk/src/megrok/login/tests/custompausetup.py	2011-02-09 11:50:35 UTC (rev 120234)
+++ megrok.login/trunk/src/megrok/login/tests/custompausetup.py	2011-02-09 11:51:54 UTC (rev 120235)
@@ -68,20 +68,21 @@
 folder, for example, which is handled by a different PAU::
 
   >>> browser.open('http://localhost')
+  Traceback (most recent call last):
+  ...
+  HTTPError: HTTP Error 500: Internal Server Error
+
   >>> print browser.contents
-  <!DOCTYPE html...
-  User:...
-  Unauthenticated User...
-  </html>
+  A system error occurred.
 
 """
 import grok
 import megrok.login
 
 from zope.pluggableauth import PluggableAuthentication
-from zope.app.authentication.principalfolder import PrincipalFolder
+from zope.pluggableauth.plugins.principalfolder import PrincipalFolder
 from zope.pluggableauth.plugins.session import SessionCredentialsPlugin
-from zope.app.security.interfaces import IAuthentication
+from zope.authentication.interfaces import IAuthentication
 from megrok.login.authplugins import (PrincipalRegistryAuthenticator,
                                       AutoRegisteringPrincipalFolder)
 
@@ -122,4 +123,3 @@
 
     def render(self):
         return "Hi from custom setup app!"
-



More information about the checkins mailing list