[Zope-CVS] CVS: Products/PluggableAuthService/plugins/tests - test_CookieAuthHelper.py:1.3

Jens Vagelpohl jens at dataflake.org
Sat Nov 20 13:44:14 EST 2004


Update of /cvs-repository/Products/PluggableAuthService/plugins/tests
In directory cvs.zope.org:/tmp/cvs-serv2643/plugins/tests

Modified Files:
	test_CookieAuthHelper.py 
Log Message:
- Enabled the usage of the CookieAuthHelper login screen functionality
  without actually using the CookieAuthHelper to maintain the
  credentials store in its own auth cookie by ensuring that only
  active updateCredentials plugins are informed about a successful
  login so they can store the credentials.


=== Products/PluggableAuthService/plugins/tests/test_CookieAuthHelper.py 1.2 => 1.3 ===
--- Products/PluggableAuthService/plugins/tests/test_CookieAuthHelper.py:1.2	Sat Oct 16 16:15:46 2004
+++ Products/PluggableAuthService/plugins/tests/test_CookieAuthHelper.py	Sat Nov 20 13:44:14 2004
@@ -122,6 +122,20 @@
         helper.resetCredentials(request, response)
         self.assertEqual(len(response.cookies), 0)
 
+    def test_loginWithoutCredentialsUpdate( self ):
+        helper = self._makeOne()
+        response = FauxCookieResponse()
+        request = FauxSettableRequest( __ac_name='foo'
+                                     , __ac_password='bar'
+                                     , RESPONSE=response
+                                     )
+        request.form = {'came_from':''}
+        helper.REQUEST = request
+
+        helper.login()
+        self.assertEqual(len(response.cookies), 0)
+
+
 if __name__ == "__main__":
     unittest.main()
 



More information about the Zope-CVS mailing list